mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-08 01:14:34 +02:00
Fixed static analysis issues
This commit is contained in:
parent
0445b87567
commit
d976865e7a
3 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ class ElementCacheTagGenerator
|
|||
}
|
||||
|
||||
//If the element is a proxy, then get the real class name of the underlying object
|
||||
if ($element instanceof Proxy || str_starts_with($element, 'Proxies\\')) {
|
||||
if (is_a($element, Proxy::class, true) || str_starts_with($element, 'Proxies\\')) {
|
||||
$element = get_parent_class($element);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue