- Issue created by @omkar.podey
- Assigned to omkar.podey
- @omkarpodey opened merge request.
- 🇮🇳India omkar.podey
we probably need to expand ,
phpstan.neon.dist, ignoreErrors:
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:33am 30 March 2023 - 🇮🇳India omkar.podey
To verify the regex i added, you can look at the results of
fee19fc8
for the errors. - 🇺🇸United States phenaproxima Massachusetts
Discussed this in scrum with the team.
Since this is very much a moving target as core becomes more compliant with PHPStan, I think that it makes sense for us to add ignore rules progressively in order to keep ourselves unblocked.
HOWEVER...
This issue is NOT to be considered fixed until there are NO PHPStan rules being ignored by us. If we need to ignore things as core churns upstream, then fine; we can continually open new merge requests against this issue's fork, and commit them as needed. But eventually, we need to actually fix the problems and remove the ignore rules, and once that's completely done, we can close this issue. I have spoken!
-
phenaproxima →
committed 9662b267 on 3.0.x authored by
omkar.podey →
Issue #3351212 by omkar.podey: Ignore PHPStan errors caused by upstream...
-
phenaproxima →
committed 9662b267 on 3.0.x authored by
omkar.podey →
- Assigned to omkar.podey
- @omkarpodey opened merge request.
- 🇮🇳India omkar.podey
I am running into a weird error of directory not being writable, i also think we need to ignore the errors related to
tearDown
as we are calling the parent it's just that it's in a try-catch which seems reasonable to me and phpstan shouldn't have complained. -
phenaproxima →
committed 92fd3c01 on 3.0.x authored by
omkar.podey →
Issue #3351212 by omkar.podey, phenaproxima: Ignore PHPStan errors...
-
phenaproxima →
committed 92fd3c01 on 3.0.x authored by
omkar.podey →
- Issue was unassigned.
- Status changed to Fixed
over 1 year ago 2:12pm 9 May 2023 - Status changed to Active
over 1 year ago 2:38pm 9 May 2023 - 🇺🇸United States phenaproxima Massachusetts
Nope!
The plan was to leave this open until all the PHPStan ignores are removed from our phpstan.neon file. The idea was to make multiple commits to this same issue over time to remove them progressively, then finally mark the issue as fixed once they were all gone.
- Status changed to Needs work
over 1 year ago 2:43pm 9 May 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Ah. Right.
Well … that was not at all clear based on the issue metadata. I see you wrote it in #6 though!
I thought the goal was to keep this open in case there were more upstream (as in
10.1
) changes happening? With the alpha tagged, that should not happen anymore.Then this issue didn't need review, but work?
- Assigned to omkar.podey
- Assigned to tedbow
- Status changed to Needs review
over 1 year ago 7:35am 22 May 2023 - Assigned to omkar.podey
- Status changed to Needs work
over 1 year ago 8:59am 22 May 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
As discussed just now: can you please expand why we still have those 2 ignored PHPStan errors?
We need to justify them. Because we'll need to do that to get it in core too.
You told me one of them appears to be a PHPStan bug. Let's make sure we link to a bug report, so that we can eventually remove it, and we'll be down to a single one!
- Issue was unassigned.
- Status changed to Active
over 1 year ago 10:41am 22 May 2023 - 🇮🇳India omkar.podey
it doesn't error out on https://phpstan.org/r/1a212fa2-3cba-4c82-80db-7c75a8346f50 i'm missing something i think
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - @omkarpodey opened merge request.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
#24: TIL about https://phpstan.org/try! Thank you! 😀
- last update
over 1 year ago 788 pass - last update
over 1 year ago 788 pass - @omkarpodey opened merge request.
- 🇮🇳India omkar.podey
Unfortunately there seems to be no performance difference.
- last update
over 1 year ago Custom Commands Failed - 🇮🇳India omkar.podey
Okay so it no longer has a problem with
\Drupal\Tests\package_manager\Kernel\PackageManagerKernelTestBase::tearDown
but there still is a problem with the try-catch. So it might be a bug after all. - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Unfortunately there seems to be no performance difference.
That's what I expected honestly 😊
but there still is a problem with the try-catch. So it might be a bug after all.
But didn't your https://phpstan.org/r/1a212fa2-3cba-4c82-80db-7c75a8346f50 experiment from #24 prove that it should work? 🤔
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Paired with @omkar.podey for an hour. Root cause found: a bug in
\PHPStan\Rules\PHPUnit\ShouldCallParentMethodsRule::hasParentClassCall()
! 🤪 Omkar will report this upstream and disable PHPStan for this one line until it's fixed upstream. - 🇮🇳India omkar.podey
Created a bug report https://github.com/phpstan/phpstan-phpunit/issues/187
- last update
over 1 year ago 778 pass, 4 fail - 🇮🇳India omkar.podey
So the conclusion is we want
3351212-test-if-still-errors
merged, it solves two things- Fix oversight of not calling
parent::tearDown()
- A solid reason for ignoring
- "#^Missing call to parent::tearDown.* method#"
- Fix oversight of not calling
- Status changed to Needs review
over 1 year ago 11:17am 23 May 2023 - Assigned to omkar.podey
- Status changed to Needs work
over 1 year ago 11:39am 23 May 2023 - last update
over 1 year ago 778 pass, 4 fail - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:25pm 23 May 2023 - Status changed to RTBC
over 1 year ago 3:02pm 23 May 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Once tests are passing again (after 📌 Since #3361983 was committed to Drupal core, psr/http-message needed to be explicitly required for build tests Needs work lands), this can be committed 👍
- last update
over 1 year ago 788 pass - last update
over 1 year ago 792 pass - last update
over 1 year ago 792 pass -
phenaproxima →
committed ae61926b on 3.0.x authored by
omkar.podey →
Issue #3351212 by omkar.podey, phenaproxima, Wim Leers, tedbow: Remove...
-
phenaproxima →
committed ae61926b on 3.0.x authored by
omkar.podey →
- Status changed to Fixed
over 1 year ago 6:24pm 23 May 2023 Automatically closed - issue fixed for 2 weeks with no activity.