-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
WIP [Meta] Add PHPStan to build process #25536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e1be251
[Meta] add PHPStan via jakzal/phpqa
dkarlovi bfb3048
[Meta] fix issues found via PHPStan in Bridge
dkarlovi 9183062
[Meta] fix issues found via PHPStan in Bundle
dkarlovi d9e30ae
[Meta] fix issues found via PHPStan in Config component
dkarlovi 83c1208
[Meta] fix issues found via PHPStan in Debug component
dkarlovi bdeda31
[Meta] fix issues found via PHPStan in DI component
dkarlovi 0a33eb1
[Meta] fix issues found via PHPStan in Filesystem component
dkarlovi a7dff25
[Meta] fix issues found via PHPStan in Debug component
dkarlovi 03daa41
[Meta] fix issues found via PHPStan in HttpFoundation component
dkarlovi da9d0e4
[Meta] fix issues found via PHPStan in Workflow component
dkarlovi 75403df
[Meta] PHPStan, switch to a custom Docker image with all required exts
dkarlovi c5467e0
[Meta] PHPStan, move autoloaded files from Composer to PHPStan
dkarlovi dbdf9de
[Meta] PHPStan, undo changes to Debug component
dkarlovi 5fc8d8e
[Meta] PHPStan, undo changes to DependencyInjection component
dkarlovi 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
[Meta] PHPStan, undo changes to Debug component
- Loading branch information
commit dbdf9de3d7b89866a54fc83e3301a49fc423ed97
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
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
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.
Should be
is_subclass_of($function[0], ClassLoader::class)
, no ?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.
Or be just reverted as the previous code was just fine.
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.
The code refers to a non-existent class?
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.
Already discussed, see #25536 (comment)
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.
OK, let's try this: there exists a (common) situation where this code refers to a non-existent class, that's the reason PHPStan found it and complained about it.
There exists a situation where this class exists. They both exists. The new code is valid in both cases, existing code is not.
Uh oh!
There was an error while loading. Please reload this page.
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.
based on what? how do you define "valid"?
on my side it's: it works as expected.
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.
OK. 👍