Bruce Weirdan
0c2fd1e6fe
Fixed code style violations
...
The codesniffer standard must have become stricter
2019-11-14 04:34:10 +02:00
Matthew Brown
69aaf6be9f
Merge pull request #35 from weirdan/code-cleanup
...
Code cleanup
2019-07-10 17:05:07 -04:00
Matthew Brown
2215d64562
Merge pull request #37 from weirdan/dont-crash-on-invalid-docblock
...
Don't crash on invalid docblocks
2019-07-10 17:04:35 -04:00
Bruce Weirdan
ca1b7cdb07
Don't crash on invalid docblocks
...
Exception is simply suppressed because Psalm will re-analyze (and
properly report) invalid docblock without further assistance.
Refs psalm/phpunit-psalm-plugin#36
2019-07-10 22:26:24 +03:00
Bruce Weirdan
531c3d6f83
Code cleanup
...
- Dropped unused uses
- Dropped AfterClassLikeExistenceCheck hack in favor of
AfterCodebasePopulated hook
- Clarified why we don't simply suppress Unused* issues
- Dropped multiple outdated polyfills
- Dropped ...$rest hack - no longer needed
2019-06-30 21:04:35 +03:00
Matthew Brown
336cfd5c62
Merge pull request #34 from weirdan/fix-cached-provider-usage-data
...
Bumped Psalm version
2019-06-30 12:17:30 -04:00
Bruce Weirdan
4f64be0b64
Bumped Psalm version
...
This fixes the problem with provider usage data being cached
See vimeo/psalm#1879
2019-06-30 19:02:03 +03:00
Matthew Brown
645be844dc
Merge pull request #33 from weirdan/fix-build-failures
...
Fix build failures
2019-06-29 21:33:47 -04:00
Bruce Weirdan
81aae541b2
Dropped debugging group
2019-06-30 04:26:30 +03:00
Bruce Weirdan
701db90270
Disabled 7.4 builds
2019-06-30 03:12:50 +03:00
Bruce Weirdan
c0f8a977c2
Fixed remaining failures
...
- Dropped unused var
- Added a workaround (dirty hack really) for changed type structure of
...$rest types
- Fixed missing errors (tests weren't using totallyTyped)
- Fixed problem with invariant ArrayObject
- Circumvented the problem with sticky method usage data (not really
fixed, but tests are passing now)
- Relaxed error message expectations
2019-06-30 02:55:36 +03:00
Bruce Weirdan
471fa67623
Fixed easiest build failures
...
- Syntax error in Acceptance helper
- Adjust expected output to match newer Psalm version (and use wildcards
where possible)
2019-06-30 00:00:39 +03:00
Matthew Brown
d2e2c43aa1
Allow installation with Psalm ^3.3
2019-06-12 08:33:50 -04:00
Brown
93b6617829
Split checks out into separate functions
2019-05-20 13:53:52 -04:00
Brown
2f4c528194
Fix version method
2019-05-16 18:26:16 -04:00
Matthew Brown
34d1373c17
Merge pull request #31 from psalm/bump-package-versions
...
Bump package versions
2019-05-16 18:05:00 -04:00
Matthew Brown
ead43e34d0
Bump versions
2019-05-16 18:02:18 -04:00
Matthew Brown
82ef477f17
Use Ocramius' package versions
2019-05-16 18:01:19 -04:00
Matthew Brown
43019d3e1c
Update Plugin.php
2019-05-16 18:00:19 -04:00
Matthew Brown
aca2f03765
Remove 7.0 checks
2019-05-16 17:59:08 -04:00
Matthew Brown
bda2f2701d
Fix bad call
2019-05-14 14:30:53 -04:00
Matthew Brown
3d54208ab0
Use array-key for expected iterable type
2019-05-14 14:30:01 -04:00
Matthew Brown
f3138fbbc6
Bump min Psalm version to support registering method usage
2019-04-27 16:17:56 -04:00
Matthew Brown
fdd731151a
Pre-register methodExists hook
...
Fixes #29
2019-04-27 16:15:45 -04:00
Matthew Brown
902dadb745
Don’t crash when provider param type is null
2019-03-25 13:46:48 -04:00
Bruce Weirdan
c370c35cfe
Merge pull request #28 from weirdan/dont-crash-on-untyped-providers
...
Fix psalm/phpunit-psalm-plugin#27
2019-03-06 23:06:03 +02:00
Bruce Weirdan
acfaba05d9
Fix psalm/phpunit-psalm-plugin#27
2019-03-06 21:48:43 +02:00
Bruce Weirdan
a85bbacdae
Merge pull request #26 from weirdan/constants-as-default-values
...
Use is_optional instead of default_type
2019-03-06 21:40:12 +02:00
Bruce Weirdan
12cfb4d1eb
Use is_optional instead of default_type
...
Refs psalm/phpunit-psalm-plugin#25
2019-03-06 21:00:09 +02:00
Bruce Weirdan
e33ae73dc7
Merge pull request #24 from weirdan/variadic-tests
...
Support variadics in test methods
2019-03-02 21:44:52 +02:00
Bruce Weirdan
c386b3e45d
Support variadics in test methods
2019-03-02 19:41:12 +02:00
Bruce Weirdan
2fcf618ba9
Merge pull request #22 from weirdan/traits-in-tests
...
Added support for test methods and providers in traits
2019-03-01 20:53:36 +02:00
Bruce Weirdan
db9c31ee51
Added support for test methods and providers in traits
...
Fixes psalm/phpunit-psalm-plugin#21
2019-03-01 20:29:19 +02:00
Bruce Weirdan
f3e0aae3f6
Merge pull request #20 from weirdan/fix-19
...
Fix psalm/phpunit-psalm-plugin#19
2019-02-27 19:20:53 +02:00
Bruce Weirdan
d36820eeea
Fix psalm/phpunit-psalm-plugin#19
2019-02-27 17:45:40 +02:00
Bruce Weirdan
24571b9a0c
Merge pull request #17 from weirdan/fix-grandchild-missingconstructor
...
Fix MissingConstructor on TestCase grandchildren
2019-02-27 15:37:48 +02:00
Bruce Weirdan
089a9c092e
Fix psalm/phpunit-psalm-plugin#16
2019-02-24 01:45:02 +02:00
Bruce Weirdan
9431b63da1
Merge pull request #15 from weirdan/dataproviders
...
Data providers and dead code detection tweaks
2019-02-23 20:24:36 +02:00
Bruce Weirdan
c13cf7b5fa
Addressed code review comments
2019-02-23 20:15:07 +02:00
Bruce Weirdan
586c2ef133
PHP 7.0 compatibility
2019-02-23 16:19:57 +02:00
Bruce Weirdan
3452ea5d76
Fixes after psalm smoke tests
...
- More possibly-different handling
- Handle possibly-undefined offsets for dataset shapes
2019-02-23 16:11:53 +02:00
Bruce Weirdan
6025f28933
Fix empty union crash, clarify invalid provider message
2019-02-22 22:41:23 +02:00
Bruce Weirdan
4fe3c88aca
Tweak dead code detection on TestCase descendants
...
- Don't report TestCase descendants as unused
- Don't report test methods as unused
- Don't report providers referenced by test methods as unused
Refs psalm/phpunit-psalm-plugin#13
/cc @SignpostMarv
2019-02-20 13:19:11 +02:00
Bruce Weirdan
330b3a1ef6
Added getKeyValueParamsForTraversableObject proxy
2019-02-20 01:21:21 +02:00
Bruce Weirdan
6906f62cfa
Fixed reported type for invalid iterables
2019-02-20 00:52:07 +02:00
Bruce Weirdan
55ee7eabc7
Add new files/folders to phpcs check
2019-02-20 00:09:27 +02:00
Bruce Weirdan
17d8351c40
PHP 7.0 compatibility
2019-02-20 00:05:32 +02:00
Bruce Weirdan
62d7bcffa4
Bump psalm version due to missing functionality
...
Breaking change: plugin now requires psalm 3.0.13+ (TIterable was made
generic in that version)
2019-02-20 00:03:06 +02:00
Bruce Weirdan
8732175020
Implemented provider type checks
...
- Invalid providers (should be iterable with array elements)
- Providers returning fewer arguments then test requires
- Providers returning datasets that are incompatible with test
signatures
refs psalm/phpunit-psalm-plugin#13
2019-02-19 22:58:56 +02:00
Bruce Weirdan
d9277bb993
Bumped Psalm version to 3.0.10
...
Breaking change: minimum psalm version is now 3.0.10 (due to the hook
interface added in that version)
Also fixed test to be compatible with legacy PHPUnit
2019-02-18 18:16:13 +02:00