This repository was archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
PHPStan fixes #296
Open
thomasvargiu
wants to merge
20
commits into
zendframework:master
Choose a base branch
from
thomasvargiu:phpstan-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
PHPStan fixes #296
Changes from 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
3a1a397
PHPStan fixes
thomasvargiu 1808073
Better exception messages
thomasvargiu 00dd89c
PHPStan 0.10 fixes
thomasvargiu 4c52699
Added phpstan in CI
thomasvargiu 940576a
PHPCS
thomasvargiu d234371
Use of UnexpectedValueException::unexpectedType()
thomasvargiu ce87b2e
Fixed travis config
thomasvargiu f2ef81b
Fixed exception
thomasvargiu 6022ee2
Updated locked dependencies on PHP 7.1
thomasvargiu 6d5733d
Locked dependencies on PHP 5.6
thomasvargiu 498163d
Added HttpDefaultRenderingStrategyFactoryTest
thomasvargiu 4ab30bf
Fixed return type
thomasvargiu bbefcb8
Removed debug code
thomasvargiu ba0fb92
phpstan parameters in phpstan.neon config
thomasvargiu 511962e
Exceptions test
thomasvargiu 7f20264
Improved exceptions an readability
thomasvargiu 09a0ebe
Changed signature to allow ArrayAccess|array argument
thomasvargiu 404bad3
Replaced ::class notation with strings in order to reduce dependencies
thomasvargiu 3845b73
Removed useless dependencies
thomasvargiu 5f40f54
Replaced PHPUnit TestCase class
thomasvargiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
/phpcs.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/test/ export-ignore | ||
/phpstan.neon export-ignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a helluvalot of added dependencies that may as well fail in production too :|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are classes used in
LazyControllerAbstractFactory
. The static analyser throws an exception if they are not found. We can convert the::class
notation in strings, probably is the best thing to do.Btw, they are included only in
require-dev
directive so shouldn't be a problem in production.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they are in
::class
form, then using the string notation is preferable over adding dependencies here