mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 06:33:10 +08:00
Actually return null
Nullable return types require an explicit null return value; not returning or returning without value is the "void" type.
This commit is contained in:
parent
3526083320
commit
9d2595d531
@ -299,6 +299,8 @@ class Extension implements Arrayable
|
||||
if (file_exists($deprecatedFilename)) {
|
||||
return $deprecatedFilename;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user