create-prisma-php-app 1.7.6 → 1.7.7

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/composer.json CHANGED
@@ -4,7 +4,6 @@
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "autoload": {
6
6
  "psr-4": {
7
- "App\\": "src/app",
8
7
  "Lib\\": "src/Lib"
9
8
  }
10
9
  },
@@ -25,9 +25,11 @@ function determineContentToInclude()
25
25
  $metadata = $metadata[$uri] ?? $metadata['default'];
26
26
 
27
27
  if ($uri) {
28
- $path = $baseDir . '/' . $uri . '.php';
29
- if (file_exists($path)) {
30
- $includePath = $path;
28
+ if (substr($uri, -4) == '.php') {
29
+ $path = $baseDir . '/' . $uri;
30
+ if (file_exists($path)) {
31
+ $includePath = $path;
32
+ }
31
33
  } else {
32
34
  $path = $baseDir . '/' . $uri . '/index.php';
33
35
  if (file_exists($path)) {
@@ -115,7 +115,7 @@ abstract class Utility
115
115
  }
116
116
  }
117
117
 
118
- public static function checkArrayContents(array $array)
118
+ public static function checkArrayContents(array $array): ArrayType
119
119
  {
120
120
  foreach ($array as $key => $value) {
121
121
  if (is_array($value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",