-
Couldn't load subscription status.
- Fork 117
fix: Track attributes for new PDO subclasses & span hierarchy #338
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
243d9c3
fix: Track attributes for new PDO subclasses
cedricziel 5efab4e
fix: style
cedricziel 0835acc
fix: mitigate UndefinedClass
cedricziel 2c110b1
fix: casing
cedricziel 27004e2
fix: make psalm happy
cedricziel de464dd
fix: phpstan ignore new php 8.4 subclasses
cedricziel d11d2f9
fix: ignore undefined class
cedricziel 239870d
fix: whitespace control
cedricziel 057e39b
fix: whitespace control
cedricziel 7d9eadb
fix: ignore invalid casing
cedricziel c2e570e
fix: add phpstan ignores conditionally
cedricziel 03a22f6
fix: style for ignore
cedricziel 893fedd
fix: phpstan conditional rules
cedricziel 8925098
fix: ignore rule for php 8.4
cedricziel 439bfa6
fix: use valid hook signature
cedricziel f7ff2d7
fix: guard against corner case where return value is a string
cedricziel 782f9dc
fix: maintain correct hierarchy and add a test
cedricziel 6648086
chore: extract host && port
cedricziel 9485e79
chore: more tests
cedricziel 697d399
chore: combine implementations for attribute tracking
cedricziel 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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| $ignoreErrors = []; | ||
|
|
||
| if (version_compare(PHP_VERSION, '8.4', '<')) { | ||
| $ignoreErrors = [ | ||
| '#Call to an undefined static method PDO::connect\(\)#', | ||
| '#PHPDoc tag @var for variable \$db contains unknown class PDO\\\\Sqlite#', | ||
| '#Call to method createFunction\(\) on an unknown class PDO\\\\Sqlite#', | ||
| '#Call to method exec\(\) on an unknown class PDO\\\\Sqlite#', | ||
| '#Call to method query\(\) on an unknown class PDO\\\\Sqlite#', | ||
| ]; | ||
| } elseif (version_compare(PHP_VERSION, '8.4', '>=')) { | ||
| $ignoreErrors = [ | ||
| '#Call to an undefined method Pdo\\\\Sqlite::createFunction\(\)#', | ||
| ]; | ||
| } | ||
|
|
||
| return [ | ||
| 'parameters' => [ | ||
| 'ignoreErrors' => $ignoreErrors, | ||
| ], | ||
| ]; |
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
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.
Uh oh!
There was an error while loading. Please reload this page.