mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-13 13:46:13 +00:00
add AllowDynamicProperties attribute
Signed-off-by: Maurice Preuß <hello@envoyr.com>
This commit is contained in:
@@ -24,7 +24,8 @@ use Throwable;
|
|||||||
* @property Response $response
|
* @property Response $response
|
||||||
* @property null|Throwable $exception
|
* @property null|Throwable $exception
|
||||||
*/
|
*/
|
||||||
abstract class BaseCollection implements JsonSerializable
|
#[\AllowDynamicProperties]
|
||||||
|
abstract class BaseCollection implements JsonSerializable
|
||||||
{
|
{
|
||||||
private Closure $callable;
|
private Closure $callable;
|
||||||
public ?Result $result = null;
|
public ?Result $result = null;
|
||||||
@@ -87,4 +88,4 @@ abstract class BaseCollection implements JsonSerializable
|
|||||||
{
|
{
|
||||||
return isset($this->result->{$name});
|
return isset($this->result->{$name});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ use Anikeen\Id\Exceptions\ResourceException;
|
|||||||
use Anikeen\Id\Result;
|
use Anikeen\Id\Result;
|
||||||
use JsonSerializable;
|
use JsonSerializable;
|
||||||
|
|
||||||
abstract class BaseResource implements JsonSerializable
|
#[\AllowDynamicProperties]
|
||||||
|
abstract class BaseResource implements JsonSerializable
|
||||||
{
|
{
|
||||||
public Result $result;
|
public Result $result;
|
||||||
|
|
||||||
@@ -53,4 +54,4 @@ abstract class BaseResource implements JsonSerializable
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user