- Issue created by @mstrelan
- First commit to issue fork.
- Status changed to Needs work
10 months ago 10:30pm 7 July 2024 - 🇦🇺Australia mstrelan
@abarrio thanks for working on this. The scope should be limited to tests only, so in paths like core/tests/* and core/*/*/tests. We also don't want to add union types in this issue, to keep the scope down, so should be limited to int returns only.
- Status changed to Needs review
8 months ago 5:27am 26 August 2024 - First commit to issue fork.
- Status changed to Needs work
8 months ago 12:57pm 28 August 2024 - 🇺🇸United States smustgrave
Not sure why cspell is showing up but pipeline failed.
- Status changed to Needs review
8 months ago 10:01pm 28 August 2024 - 🇦🇺Australia mstrelan
cspell was due to catch and I debugging some pipeline cache issues, let's move that to 🐛 Hardcode the core project ID for fetching artifacts from the gitlab API Needs review . Have reverted and rebased.
- Status changed to RTBC
8 months ago 2:22pm 3 September 2024 - 🇳🇿New Zealand quietone
I applied the diff and tested.
My results show two methods that have not been changed
+ protected function getUnapprovedComment($subject): int { + protected function doEditStep($active_langcode, $default_revision, $untranslatable_update = FALSE, $valid = TRUE): int {
- 🇦🇺Australia mstrelan
Thanks @quietone, I should have indicated why these were skipped. Both of these claim to return an int but actually return a string.
The two methods are:
\Drupal\Tests\comment\Functional\CommentTestBase::getUnapprovedComment
\Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest
I've added a note to fix these in the parent issue. Not opening individual issues for now so we can figure out appropriate scope for these little fixes.
Setting back to RTBC as there is nothing to change here.
-
quietone →
committed d433d966 on 11.x
Issue #3458426 by mstrelan, catch, smustgrave: Add int return typehints...
-
quietone →
committed d433d966 on 11.x
- 🇳🇿New Zealand quietone
@mstrelan, thanks for the explanation.
I reviewed the MR and I think it is ready for commit. There is JavaScript here, which I no little of. So I confirmed that transfersize returns an int. So, this is good to go.
- 🇳🇿New Zealand quietone
I tried to find the commits made by @abarrio but wasn't able to. So, I DMed mstrelan who confirmed the contribution was valid, it just needed to be de-scoped. Therefor, adding credit.
-
quietone →
committed 2a549f16 on 11.x
Revert "Issue #3458426 by mstrelan, catch, smustgrave: Add int return...
-
quietone →
committed 2a549f16 on 11.x
- 🇳🇿New Zealand quietone
This is causing test failures on HEAD, from \Drupal\migrate_drupal\Tests\StubTestTrait::createEntityStub. Although, I don't understand why tested passed in the lastest pipeline here though.
- 🇦🇺Australia mstrelan
I investigated the fail mentioned in #18 and it was due to 📌 Enforce strict types in tests Fixed . This uncovered that sometimes
::createEntityStub
returns an int and sometimes a string. I've added this one to the list of return types to be fixed in the parent issue. I've removed the return type from this method in the MR, setting back to NR. - 🇳🇿New Zealand quietone
Yes, but those are in tests that are not changed in the MR.
- 🇳🇿New Zealand quietone
Thanks!
Assigning to myself to commit within 24 hours.
-
quietone →
committed 2319f339 on 11.x
Issue #3458426 by mstrelan, catch, abarrio, quietone, smustgrave: Add...
-
quietone →
committed 2319f339 on 11.x
- Status changed to Fixed
6 months ago 1:14am 7 November 2024 Automatically closed - issue fixed for 2 weeks with no activity.