We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 370ec07 commit e92b272Copy full SHA for e92b272
src/Manifest.php
@@ -13,6 +13,10 @@ class Manifest
13
*/
14
public static function id()
15
{
16
+ if (! array_key_exists('id', static::current() ?? [])) {
17
+ Helpers::abort(sprintf('Invalid project ID. Please verify your Vapor manifest at [%s].', Path::manifest()));
18
+ }
19
+
20
return static::current()['id'];
21
}
22
@@ -23,6 +27,10 @@ public static function id()
23
27
24
28
public static function name()
25
29
30
+ if (! array_key_exists('name', static::current() ?? [])) {
31
+ Helpers::abort(sprintf('Invalid project name. Please verify your Vapor manifest at [%s].', Path::manifest()));
32
33
26
34
return static::current()['name'];
35
36
0 commit comments