-
-
Notifications
You must be signed in to change notification settings - Fork 23
Strange DBAL discrepancy between local env and CI #225
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
Comments
having a mixed only for a single column-type would mean you are running into this case:
are you sure you are using the same db schema locally and in CI? alternatively: maybe your schema is using a column type, which is not yet properly mapped to a phpstan type in phpstan-dba/src/QueryReflection/MysqliQueryReflector.php Lines 182 to 301 in e2939f2
|
The package table has a simple int(11) primary id, nothing weird, and it definitely hasn't changed in 10 years so I believe my local schema matches CI :) I'm on mysql8.0.13 and GH is on 8.0.26 but I doubt that'd make a difference here.. I can try to upgrade to be sure, wouldn't hurt anyway ;) |
If time allows I can debug the CI job and the used phpstan-dba version within the CI pipeline. |
On 8.0.28 locally now, still can't repro :/ |
Very confused, just tried again to run phpstan and suddenly it changed to the same output as CI?! I even tried clearing PHPStan & phpstan-dba caches earlier, it didn't help.. proper WTF here.. but at least it works now so I guess closing 🤷♂️ |
hm ok, so you are now able to debug locally why its returning running phpstan with |
I have a new theory, why you get a doctrine defines the method in your example phpstan-dba is taking one of the phpstan-dba/src/Extensions/DoctrineConnectionFetchDynamicReturnTypeExtension.php Lines 48 to 76 in 47c9935
I am not yet sure for the exact reason. |
I think we can consider this issue fixed. the acual problem was, that we skipped everything which had no parameters. |
Thanks! |
With this code here https://github.com/composer/packagist/blob/8a3d28e42f9790dea401e5f9afc7c2c9780b58d8/src/Entity/PackageRepository.php#L255-L270
Running locally I get:
Which makes sense given #222
But on CI e.g. https://github.com/composer/packagist/runs/5037284175?check_suite_focus=true I get this:
Any clue what could cause this? All dependency versions are the same as it installs from lock file.
The text was updated successfully, but these errors were encountered: