- Issue created by @mstrelan
- Merge request !5564Fix strict type errors in Functional tests: Add casts and fix types where needed → (Closed) created by mstrelan
- Status changed to Needs review
about 1 year ago 12:49am 28 November 2023 - Status changed to Needs work
12 months ago 8:58am 25 December 2023 - 🇳🇿New Zealand quietone
I'm triaging RTBC issues → . I read the IS and the comments. I didn't find any unanswered questions.
I read the MR and left some questions.
- Status changed to Needs review
12 months ago 4:43am 5 January 2024 - Status changed to RTBC
12 months ago 2:51pm 5 January 2024 - Status changed to Needs review
11 months ago 10:10pm 16 January 2024 - 🇦🇺Australia mstrelan
Yet another rebase. TaxonomyTermFilterDepthTest has moved to a Kernel test so those fixes will need to be made in 📌 Fix strict type errors: miscellaneous fixes in core Kernel tests Postponed .
- 🇺🇸United States smustgrave
There are a lot of tickets in NR and RTBC of converting functional tests to kernel so this may be hitting a moving target
- Status changed to RTBC
11 months ago 10:42pm 16 January 2024 - Assigned to mstrelan
- Status changed to Needs work
11 months ago 10:44pm 28 January 2024 - 🇦🇺Australia mstrelan
MR no longer applies
$ curl -s https://git.drupalcode.org/project/drupal/-/merge_requests/5564.diff | git apply error: core/modules/node/tests/src/Functional/Views/PathPluginTest.php: No such file or directory error: core/modules/node/tests/src/Functional/Views/RowPluginTest.php: No such file or directory
- Issue was unassigned.
- Status changed to Needs review
11 months ago 10:51pm 28 January 2024 - 🇦🇺Australia mstrelan
Rebased and reverted changes to the now kernel tests mentioned in #11. Noted in #3402713-8: Fix strict type errors: miscellaneous fixes in core Kernel tests → for these to be fixed there.
- Status changed to RTBC
11 months ago 3:05pm 29 January 2024 - Status changed to Needs review
11 months ago 3:36am 30 January 2024 - Status changed to RTBC
11 months ago 2:51pm 30 January 2024 - 🇺🇸United States smustgrave
Reviewed the additional 4 and don't see any issue.
- Status changed to Postponed
11 months ago 5:57am 31 January 2024 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
I think we should postpone this on 🐛 Incorrect typehint of LOGGED_IN and LOGGED_OUT consts in UserAuthenticationController Needs work so we don't need the extra casts here.
- Status changed to Needs review
11 months ago 6:27am 31 January 2024 - 🇦🇺Australia mstrelan
I think rather than postponing we can just drop those changes from this issue (which I've done). This will inherently postpone 📌 Add declare(strict_types=1) to all Functional tests Fixed instead, which is already postponed until all the tests pass. Setting this back to NR since I've reverted these changes.
- Status changed to RTBC
11 months ago 8:34pm 31 January 2024 -
larowlan →
committed af369c3c on 11.x
Issue #3404508 by mstrelan, smustgrave, quietone: Fix strict type errors...
-
larowlan →
committed af369c3c on 11.x
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Committed to 11.x, flagging for backport. As we're not changing the phpcs rules in 10.2.x it probably won't matter that we didn't backport 🐛 Incorrect typehint of LOGGED_IN and LOGGED_OUT consts in UserAuthenticationController Needs work
- Status changed to Downport
11 months ago 9:59pm 1 February 2024 - Status changed to Needs review
11 months ago 10:10pm 1 February 2024 - 🇦🇺Australia mstrelan
I've pushed a 10.2.x branch and dropped the last commit that was reverting changes to UserLoginHttpTest. Even though we're not changing the phpcs rule, presumably we would still backport the strict types declaration, so the test would throw an error. I think casting the ints in 10.2.x is the right approach.
- Status changed to RTBC
11 months ago 3:54pm 2 February 2024 -
quietone →
committed 02c2f2c1 on 10.2.x
Issue #3404508 by mstrelan, smustgrave, larowlan, quietone: Fix strict...
-
quietone →
committed 02c2f2c1 on 10.2.x
- Status changed to Fixed
10 months ago 3:55am 14 February 2024 - 🇳🇿New Zealand quietone
I read the MR, looking for the changes related to 🐛 Incorrect typehint of LOGGED_IN and LOGGED_OUT consts in UserAuthenticationController Needs work and I see the correct changes have been made. I had some time so I also did some extra checking. I made a patch from the commit on 11.x and compared that to the diff here for 10.2.x. The diff confirmed that the changes are only in \Drupal\Tests\user\Functional\UserLoginHttpTest and are adding a cast to string on lines like this.
$this->assertHttpResponse($response, 200, (string) UserAuthenticationController::LOGGED_IN);
Committed 02c2f2c and pushed to 10.2.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.