| @@ -12,13 +12,13 @@ | ||
| 12 | 12 | namespace WindPress\WindPress\Utils; |
| 13 | 13 | |
| 14 | 14 | use ArrayAccess; |
| 15 | 15 | use Exception; |
| 16 | +use WindPressDeps\Symfony\Component\PropertyAccess\Exception\AccessException; | |
| 17 | +use WindPressDeps\Symfony\Component\PropertyAccess\Exception\InvalidArgumentException; | |
| 18 | +use WindPressDeps\Symfony\Component\PropertyAccess\Exception\UnexpectedTypeException; | |
| 19 | +use WindPressDeps\Symfony\Component\PropertyAccess\PropertyAccess; | |
| 16 | 20 | use WIND_PRESS; |
| 17 | -use WindPressPackages\Symfony\Component\PropertyAccess\Exception\AccessException; | |
| 18 | -use WindPressPackages\Symfony\Component\PropertyAccess\Exception\InvalidArgumentException; | |
| 19 | -use WindPressPackages\Symfony\Component\PropertyAccess\Exception\UnexpectedTypeException; | |
| 20 | -use WindPressPackages\Symfony\Component\PropertyAccess\PropertyAccess; | |
| 21 | 21 | /** |
| 22 | 22 | * Accessor for the plugin config. |
| 23 | 23 | * |
| 24 | 24 | * @since 3.0.0 |
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | { |
| 28 | 28 | /** |
| 29 | 29 | * Stores the instance of PropertyAccessor, implementing a Singleton pattern. |
| 30 | 30 | */ |
| 31 | - private static ?\WindPressPackages\Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null; | |
| 31 | + private static ?\WindPressDeps\Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null; | |
| 32 | 32 | public static function propertyAccessor() |
| 33 | 33 | { |
| 34 | 34 | if (!isset(self::$propertyAccessor)) { |
| 35 | 35 | self::$propertyAccessor = PropertyAccess::createPropertyAccessorBuilder()->enableExceptionOnInvalidIndex()->getPropertyAccessor(); |
| @@ -82,9 +82,9 @@ | ||
| 82 | 82 | * @param string|array $key |
| 83 | 83 | * @param mixed $value |
| 84 | 84 | * @param bool $overwrite |
| 85 | 85 | * @return mixed |
| 86 | - * | |
| 86 | + * | |
| 87 | 87 | * @see https://github.com/laravel/framework/blob/a84c4f41d3fb1c57684bb417b1f0858300e769d0/src/Illuminate/Collections/helpers.php#L109 |
| 88 | 88 | */ |
| 89 | 89 | public static function data_set(&$target, $key, $value, $overwrite = \true) |
| 90 | 90 | { |
| @@ -135,9 +135,9 @@ | ||
| 135 | 135 | * |
| 136 | 136 | * @param \ArrayAccess|array $array |
| 137 | 137 | * @param string|int $key |
| 138 | 138 | * @return bool |
| 139 | - * | |
| 139 | + * | |
| 140 | 140 | * @see https://github.com/laravel/framework/blob/a84c4f41d3fb1c57684bb417b1f0858300e769d0/src/Illuminate/Collections/Arr.php#L164 |
| 141 | 141 | */ |
| 142 | 142 | public static function array_exists($array, $key) |
| 143 | 143 | { |
| @@ -153,9 +153,9 @@ | ||
| 153 | 153 | * Determine whether the given value is array accessible. |
| 154 | 154 | * |
| 155 | 155 | * @param mixed $value |
| 156 | 156 | * @return bool |
| 157 | - * | |
| 157 | + * | |
| 158 | 158 | * @see https://github.com/laravel/framework/blob/a84c4f41d3fb1c57684bb417b1f0858300e769d0/src/Illuminate/Collections/Arr.php#L21 |
| 159 | 159 | */ |
| 160 | 160 | public static function array_accessible($value) |
| 161 | 161 | { |