Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Sources/ActionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ public function canShowDebuggingInfo(): bool
*/
public static function load(): static
{
if (!isset(static::$obj)) {
// A static property is shared with every descendant class that doesn't
// redeclare it, so $obj might currently hold an instance of a relative
// of this class rather than an instance of this class itself.
if (!isset(static::$obj) || static::$obj::class !== static::class) {
static::$obj = new static();
}

Expand Down
Loading