create-prisma-php-app 1.25.501 → 1.25.502
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/Lib/Request.php
CHANGED
|
@@ -12,7 +12,7 @@ class Request
|
|
|
12
12
|
const baseUrl = '/src/app';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @var \
|
|
15
|
+
* @var \stdClass $params A static property to hold request parameters.
|
|
16
16
|
*
|
|
17
17
|
* This property is used to hold request parameters that are passed to the request.
|
|
18
18
|
*
|
|
@@ -31,7 +31,7 @@ class Request
|
|
|
31
31
|
public static \ArrayObject $params;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* @var \
|
|
34
|
+
* @var \stdClass $dynamicParams A static property to hold dynamic parameters.
|
|
35
35
|
*
|
|
36
36
|
* This property is used to hold dynamic parameters that are passed to the request.
|
|
37
37
|
*
|
|
@@ -163,8 +163,8 @@ class Request
|
|
|
163
163
|
*/
|
|
164
164
|
public static function init(): void
|
|
165
165
|
{
|
|
166
|
-
self::$params = new \ArrayObject();
|
|
167
|
-
self::$dynamicParams = new \ArrayObject();
|
|
166
|
+
self::$params = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
|
|
167
|
+
self::$dynamicParams = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
|
|
168
168
|
|
|
169
169
|
self::$referer = $_SERVER['HTTP_REFERER'] ?? 'Unknown';
|
|
170
170
|
self::$method = $_SERVER['REQUEST_METHOD'] ?? 'GET';
|
|
@@ -227,7 +227,7 @@ class Request
|
|
|
227
227
|
*/
|
|
228
228
|
private static function getParams(): \ArrayObject
|
|
229
229
|
{
|
|
230
|
-
$params = new \ArrayObject();
|
|
230
|
+
$params = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
|
|
231
231
|
|
|
232
232
|
if (self::$method === 'GET') {
|
|
233
233
|
$params = new \ArrayObject($_GET, \ArrayObject::ARRAY_AS_PROPS);
|