- Issue created by @mondrake
- ๐ฎ๐ณIndia samit.310@gmail.com
samit.310@gmail.com โ made their first commit to this issueโs fork.
- @samit310gmailcom opened merge request.
- Status changed to Needs review
8 months ago 8:11am 12 April 2024 - Status changed to RTBC
8 months ago 1:58pm 12 April 2024 - Status changed to Needs review
8 months ago 8:28pm 12 April 2024 - ๐ฌ๐งUnited Kingdom catch
Not sure about this one, the original issue this was added in was #2996114: Argument 2 passed to Drupal\jsonapi\Routing\Routes::Drupal\jsonapi\Routing\{closure}() must be an instance of Drupal\jsonapi\ResourceType\ResourceType, NULL given โ and it looks pretty clear from that issue that people were seeing this issue on runtime, not necessarily during development. So if we change it to an exception, they could suddenly get an unusable site. I didn't read all 160+ comments on that issue, but needs more thought IMO.
- ๐บ๐ธUnited States smustgrave
We can't deprecate right? That would block updating to phpunit 10 in D10. So is there any alternative?
- ๐ฌ๐งUnited Kingdom catch
The alternative is logging a warning with the logger service instead of trigger_error(), we could open a follow-up to look at throwing an exception, but I think hitting this code path is a symptom of something else being wrong, and it would be better to throw exceptions there (config import?).
- First commit to issue fork.
- Status changed to RTBC
7 months ago 12:51pm 15 April 2024 - ๐บ๐ธUnited States smustgrave
Ah didn't think of just logging. Thought the only options were trigger_error or exception.
Thanks for showing that @quietone
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
This issue titles should be about the runtime code being changed. The test change is secondary. It's way more important that the E_USER_WARNING is being replaced with a logged warning message.
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Committed and pushed bcf45f5d87 to 11.x and 9c865d11f3 to 10.3.x. Thanks!
-
alexpott โ
committed 9c865d11 on 10.3.x
Issue #3440039 by samit.310@gmail.com, quietone, smustgrave, catch,...
-
alexpott โ
committed 9c865d11 on 10.3.x
- Status changed to Fixed
7 months ago 9:39pm 15 April 2024 -
alexpott โ
committed bcf45f5d on 11.x
Issue #3440039 by samit.310@gmail.com, quietone, smustgrave, catch,...
-
alexpott โ
committed bcf45f5d on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.