create-prisma-php-app 1.19.502 → 1.20.0

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.
@@ -248,7 +248,8 @@ class Auth
248
248
  public function getPayload()
249
249
  {
250
250
  if (isset($_SESSION[self::PAYLOAD])) {
251
- return $_SESSION[self::PAYLOAD][self::PAYLOAD_NAME];
251
+ $value = $_SESSION[self::PAYLOAD][self::PAYLOAD_NAME];
252
+ return is_array($value) ? new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS) : $value;
252
253
  }
253
254
 
254
255
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.19.502",
3
+ "version": "1.20.0",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",