Skip to content

Commit f653a3f

Browse files
authored
Add explicit function imports for complier optimized functions. (#60)
1 parent 883a8cc commit f653a3f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/DataModel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
use ReflectionUnionType;
1111
use UnitEnum;
1212

13+
use function is_array;
14+
use function is_object;
15+
use function is_string;
16+
1317
/**
1418
* Enables classes to instantiate themselves from arrays or objects, auto-populating properties based on type hints and attributes.
1519
* Supports primitives, custom classes, enums, and allows for custom casting logic.

src/Describe.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Attribute;
66

7+
use function is_bool;
8+
use function is_string;
9+
710
/**
811
* Pass an associative array to the constructor to describe the behavior of a property when it is resolved.
912
*

0 commit comments

Comments
 (0)