Page MenuHomePhorge

Don't try to assign a package to null
ClosedPublic

Authored by mollekopf on Mar 11 2023, 12:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 10:17 AM
Unknown Object (File)
Sun, Apr 14, 5:00 AM
Unknown Object (File)
Sat, Apr 13, 10:51 AM
Unknown Object (File)
Wed, Apr 10, 12:35 PM
Unknown Object (File)
Tue, Apr 9, 5:15 PM
Unknown Object (File)
Sun, Apr 7, 3:30 AM
Unknown Object (File)
Fri, Apr 5, 6:15 AM
Unknown Object (File)
Mar 6 2024, 1:07 PM
Subscribers

Diff Detail

Repository
rK kolab
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/app/User.php:65phpstanProperty App\User::$allowed_states is never read, only written.
Unit
No Test Coverage
Build Status
Buildable 42083
Build 16931: arc lint + arc unit

Event Timeline

mollekopf created this revision.
mollekopf added a reviewer: Restricted Project.Mar 11 2023, 12:54 PM

Not entirely sure if there is a valid case where we end up passing a domain package, but not a domain to assignPlan. I ran into this at some point, but maybe I'll have to reproduce first.

I'd say it should throw an exception.

Throwing an exception now to be a bit more explicit than then crash when trying to access null

This revision is now accepted and ready to land.Mar 23 2023, 9:09 AM
This revision was landed with ongoing or failed builds.Mar 26 2023, 11:32 PM
This revision was automatically updated to reflect the committed changes.