- Deleted tmp file
This commit is contained in:
1 parent
886714704b
commit
9e110aa95e
2 files changed
-27
No files matched your search
@@ -1,26 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Notes\Common;
|
|
||||||
|
|
||||||
class ReflectedPropertyType
|
|
||||||
{
|
|
||||||
public function __construct(
|
|
||||||
public string $type,
|
|
||||||
public bool $builtIn,
|
|
||||||
public bool $nullable,
|
|
||||||
) {}
|
|
||||||
|
|
||||||
public function isType(string $type) : bool
|
|
||||||
{
|
|
||||||
if ($type === "null" || $this->nullable) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->type === $type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function isObject() : bool
|
|
||||||
{
|
|
||||||
return ! $this->builtIn && class_exists($this->type);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -105,7 +105,6 @@ class RouteFetcher {
|
|||||||
$objectResolver = new ObjectResolver($class, $this->cache);
|
$objectResolver = new ObjectResolver($class, $this->cache);
|
||||||
|
|
||||||
if ( isset($attributes['object']) ) {
|
if ( isset($attributes['object']) ) {
|
||||||
|
|
||||||
# Also loading Routes attribute from parent classes
|
# Also loading Routes attribute from parent classes
|
||||||
$objects = $objectResolver->reflectedClass->getClassAttributeListFromClassname($attributes['object'], true, false);
|
$objects = $objectResolver->reflectedClass->getClassAttributeListFromClassname($attributes['object'], true, false);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user