From db72f1e58a644d0fcd38106d2b0147ec827011a1 Mon Sep 17 00:00:00 2001 From: Jonas Regner Date: Tue, 23 Jan 2024 08:41:46 +0100 Subject: [PATCH] fix: access before initialization Closes #100 --- README.md | 9 ++++----- src/NameResolver.php | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d58e4c0..af5b36f 100644 --- a/README.md +++ b/README.md @@ -469,12 +469,11 @@ php artisan beyond:setup - `beyond:make:exception` - `beyond:make:state` - `beyond:make:value-object` -- `beyond:make:factory` -- `beyond:make:migration` -- `beyond:make:seeder` -- `beyond:make:test` +- `beyond:make:factory` (?) +- `beyond:make:migration` (?) +- `beyond:make:seeder` (?) +- `beyond:make:test` (?) ### Other -- Auto register module service provider inside `app.php` - Update command documentation ## Contributors diff --git a/src/NameResolver.php b/src/NameResolver.php index b8c9bf6..d5739e1 100644 --- a/src/NameResolver.php +++ b/src/NameResolver.php @@ -19,7 +19,7 @@ final class NameResolver private string $namespace; - private string $directory; + private ?string $directory = null; private string $className;