Commit Graph

218 Commits

Author SHA1 Message Date
Bruce Weirdan
53139773fe
Merge pull request #101 from weirdan/suppress-more-redundant-casts
Suppressed more redundant casts
2020-12-05 07:55:51 +02:00
Bruce Weirdan
66ee3852cd
Suppressed more redundant casts
The issue name keeps changing
2020-12-05 07:49:50 +02:00
Bruce Weirdan
aa35347b26
Dropped travis.yml from .gitattributes
And added .github
2020-11-25 05:34:33 +02:00
Bruce Weirdan
2df3070193
Merge pull request #98 from weirdan/disable-travis
Disable Travis
2020-11-25 05:33:14 +02:00
Bruce Weirdan
c336c33fa9
Disable Travis
Travis CI seems to be continuosly lowering it's OSS jobs cap, so the
feedback loop is getting slower and slower. Github CI appears to be
working just fine, so I propose to complete the switch.
2020-11-24 05:53:07 +02:00
Bruce Weirdan
a386816f6d
Merge pull request #97 from weirdan/bump-codeception-psalm-module
Bumped codeception-psalm-module to allow testing on PHP 8
2020-11-03 03:41:53 +02:00
Bruce Weirdan
16260a87d3
Bumped codeception-psalm-module to allow testing on PHP 8 2020-11-03 03:36:03 +02:00
Bruce Weirdan
921aaaa45a
Merge pull request #96 from weirdan/github-actions
Added Github actions workflow
2020-11-03 02:46:03 +02:00
Bruce Weirdan
4ff4f2231e
Added Github actions workflow 2020-11-03 02:40:34 +02:00
Bruce Weirdan
9948b21d1b
Merge pull request #95 from weirdan/fix-tests
Fixed tests by adjusting the expectations to what Psalm now produces
2020-11-03 00:30:14 +02:00
Bruce Weirdan
62e82e7c1e
Fixed tests by adjusting the expectations to what Psalm now produces 2020-11-03 00:13:31 +02:00
Bruce Weirdan
4fe005857f
Merge pull request #94 from enumag/patch-1
Update README.md
2020-11-03 00:06:58 +02:00
Jáchym Toušek
1cf8c1bc5b
Update README.md 2020-11-02 09:30:17 +01:00
Matthew Brown
ea17d71532
Allow PHP 7.1 again 2020-10-26 15:18:31 -04:00
Matthew Brown
fee78b308a
Remove PHP 7.1 and 7.2 from build 2020-10-19 09:12:59 -04:00
Matthew Brown
e006914489
Allow 4.0 2020-10-19 08:43:17 -04:00
Matthew Brown
6406bc272b
Allow beta 2020-10-19 08:42:20 -04:00
Matthew Brown
562a1812ce
Merge pull request #91 from psalm/psalm-v4
Get ready for Psalm v4
2020-10-13 00:55:52 -04:00
Matt Brown
74d4318bef Change to TKeyedArray 2020-10-13 00:38:14 -04:00
Matthew Brown
50f224c5aa
Require master 2020-10-12 20:42:16 -04:00
Matthew Brown
85ee5a080a
Remove template-typeof use 2020-09-28 13:25:39 -04:00
Bruce Weirdan
66b991c8d9
Merge pull request #87 from MidnightDesign/php-8.0
Allow PHP 8 in composer.json, run in CI
2020-09-19 22:53:59 +03:00
Bruce Weirdan
8a0e88447f
Actually allow failures 2020-09-19 12:36:20 +03:00
Rudolph Gottesheim
b1051f29d7
Allow PHP 8 in composer.json, run in CI 2020-09-19 04:10:45 +03:00
Bruce Weirdan
a5e0ba6e5e
Merge pull request #88 from weirdan/fix-psalm-compatibility
Fix psalm compatibility
2020-09-19 01:07:34 +03:00
Bruce Weirdan
54c50d64ef
Adjust expectations to what Psalm now reports 2020-09-19 00:52:59 +03:00
Bruce Weirdan
e074fe3e42
Adjust suppression to what newer Psalm version reports 2020-09-19 00:48:47 +03:00
Bruce Weirdan
b5c88b5cd8
Allow errors with pure callables 2020-09-19 00:48:11 +03:00
Matthew Brown
fca9b22392
Support 4.x dev branch 2020-08-30 12:26:06 -04:00
Matthew Brown
4d82449292
Only use legacy stub file for old versions of PHPUnit
Fixes #86
2020-08-30 12:13:49 -04:00
Bruce Weirdan
d3f5c00e8c
Merge pull request #85 from weirdan/fix-duplicate-dep
Drop semver requirement from require-dev as it's also in require
2020-08-25 00:08:29 +03:00
Bruce Weirdan
1bb4710491
Drop semver requirement from require-dev as it's also in require 2020-08-24 23:55:09 +03:00
Bruce Weirdan
b3e9d87600
Merge pull request #84 from weirdan/fix-prophecy-issues
Fix Prophecy-related issues
2020-08-24 23:29:15 +03:00
Bruce Weirdan
9c11bac834
Fix Prophecy-related issues
1. `prophesize()` has always been protected, not public
2. Provide generic definition for `prophesize()` implemented by `phpspec/prophecy-phpunit`
2020-08-24 22:32:11 +03:00
Bruce Weirdan
619506c79a
Merge pull request #83 from weirdan/fix-issues
Fix issues introduced/detected in recent Psalm versions
2020-08-24 22:30:51 +03:00
Bruce Weirdan
55c362994c
Use tags instead of combined_tags
`combined_tags` appear to contain only known tags
2020-08-24 22:15:09 +03:00
Bruce Weirdan
206ca87c66
Fix DeprecatedMethod 2020-08-24 21:42:50 +03:00
Bruce Weirdan
0cc2e86928
Fixed ParamNameMismatch
Also removed unused uses
2020-08-24 21:41:06 +03:00
Bruce Weirdan
6b873b57c1
Merge pull request #81 from ktomk/patch-stubs-1
Patch stubs 1
2020-08-07 01:49:56 +03:00
Tom Klingenberg
45fd05f355 Add TestCase::createConfigured/PartialMock() to stub
Previously the create-configured and create-partial mock-methods were not
part of the stub.

Add them.
2020-08-06 16:16:06 +02:00
Tom Klingenberg
9e9a8bb295 Fix visibility TestCase::createMock
Upstream PHPUnit\Framework\TestCase::createMock() is protected, not public.

Fix is to set the proper upstream visibility; change from public to
protected.

Public for the method introcuded back in 2018 in fa76f652. Checked against
Phpunit 7.5+ and 8.

Ref: fa76f65209
2020-08-05 03:44:06 +02:00
Tom Klingenberg
7355af1380 Remove superfluous phpcs:ignoreFile marker
Remove markers that command PHP_CodeSniffer (Pear package base-name for
"phpcs") to skip files based on their own configuration as those files
are already with the .phpstub extension which effectively has them not
configured/already ignored  by phpcs base/upstr. configuration (project
configuration file: phpcs.xml.dist)

Fix is to remove these markers/directives, also not all .phpstub files
had them therefore this is effectively streamlining the file formats
for .phpstub to this regard.
2020-08-05 03:42:35 +02:00
Tom Klingenberg
7ccaf51a10 Resolve Constraint for MockBuilder stubs
File contains two classes (one class and one interface), the mock-object
interface was missing resolution for Constraint.

This Constraint is PHPUnit\Framework\Constraint\Constraint.
2020-08-05 03:42:02 +02:00
Tom Klingenberg
a32a2c6899 WS-Fixes
Phpunit upstream indents (prefixes) docblock @param annotations and I can
imagine that some white-space has been taken over from that into the stub
files when writing them.

Also for separation by  empty lines between methods which looks as well
as an error quickly porting from upstream (better than anything else).
2020-08-05 03:41:22 +02:00
Bruce Weirdan
88d464841d
Merge pull request #79 from vladyslavstartsev/cleanup-package
Cleanup package (close #76)
2020-06-20 21:21:37 +03:00
Vladyslav Startsev
b55d221eb5 - removed unused class import
- made anon functions static (for better performance)
- list() -> []
- remove unneeded type castings
2020-06-19 08:22:53 +03:00
Vladyslav Startsev
f35392ea71 - moved composer/semver to require-dev
- removed unused method
2020-06-19 01:39:47 +03:00
Vladyslav Startsev
c855857457 fix annotation 2020-06-19 01:38:51 +03:00
Vladyslav Startsev
e61d8bee72 deleted unused Exception 2020-06-19 01:37:02 +03:00
Matthew Brown
83b5c107a8
Merge pull request #75 from caugner/patch-1
Allow composer/semver ^2.0 || ^3.0
2020-06-04 17:44:57 -04:00