From a07ccee69cedadd34b30f9352155514d3e0c2f86 Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 27 Oct 2023 22:59:16 +0200 Subject: [PATCH] Initial commit --- CHANGELOG.md | 13 ------------- phpstan/project.neon | 2 +- src/Actions/GetClassForConfig.php | 2 +- src/Actions/GetConfigsForPredeterminedPackage.php | 2 +- src/Console/Commands/GenerateTypedConfig.php | 6 +++--- src/Helper/DoesTypedConfigClassExist.php | 2 +- src/TypedConfig.php | 4 ++-- src/TypedConfigServiceProvider.php | 4 ++-- 8 files changed, 11 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fb582c..e5bed16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,19 +4,6 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.3.0] 2023-10-27 -### Changed -- Fixed namespace - -## [0.2.0] 2023-10-27 -### Changed -- Updated the README.md to reflect the current state of the project -- Removed support for PHP 8.0 -- Added the missing ServiceProvider - ## [0.1.0] 2023-10-27 ### Created - Initial setup of this library - -[0.3.0]: https://github.com/MJTheOne/typed-config-generator/compare/0.2.0...0.3.0 -[0.2.0]: https://github.com/MJTheOne/typed-config-generator/compare/0.1.0...0.2.0 diff --git a/phpstan/project.neon b/phpstan/project.neon index 025336b..6f4bb2d 100644 --- a/phpstan/project.neon +++ b/phpstan/project.neon @@ -1,6 +1,6 @@ parameters: ignoreErrors: - - '#^Method Coddin\\SpatieQueryBuilder\\Http\\Requests\\SpatieQueryBuilder\:\:[a-zA-Z]+\(\) has parameter \$callback with null as default value\.$#' + # Add errors to ignore here. ergebnis: noExtends: diff --git a/src/Actions/GetClassForConfig.php b/src/Actions/GetClassForConfig.php index 5c38917..f129f8f 100644 --- a/src/Actions/GetClassForConfig.php +++ b/src/Actions/GetClassForConfig.php @@ -4,7 +4,7 @@ namespace Coderg33k\TypedConfigGenerator\Actions; -use CoderG33k\TypedConfig; +use Coderg33k\TypedConfigGenerator\TypedConfig; use Illuminate\Support\Str; final class GetClassForConfig diff --git a/src/Actions/GetConfigsForPredeterminedPackage.php b/src/Actions/GetConfigsForPredeterminedPackage.php index 6e71165..c04a0b3 100644 --- a/src/Actions/GetConfigsForPredeterminedPackage.php +++ b/src/Actions/GetConfigsForPredeterminedPackage.php @@ -4,7 +4,7 @@ namespace Coderg33k\TypedConfigGenerator\Actions; -use CoderG33k\Enums\Package; +use Coderg33k\TypedConfigGenerator\Enums\Package; final class GetConfigsForPredeterminedPackage { diff --git a/src/Console/Commands/GenerateTypedConfig.php b/src/Console/Commands/GenerateTypedConfig.php index a1438a6..d5422b1 100644 --- a/src/Console/Commands/GenerateTypedConfig.php +++ b/src/Console/Commands/GenerateTypedConfig.php @@ -4,9 +4,9 @@ namespace Coderg33k\TypedConfigGenerator\Console\Commands; -use CoderG33k\Actions\GetConfigsForPredeterminedPackage; -use CoderG33k\Enums\Package; -use CoderG33k\Helper\ArrayFlatMap; +use Coderg33k\TypedConfigGenerator\Actions\GetConfigsForPredeterminedPackage; +use Coderg33k\TypedConfigGenerator\Enums\Package; +use Coderg33k\TypedConfigGenerator\Helper\ArrayFlatMap; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Arr; diff --git a/src/Helper/DoesTypedConfigClassExist.php b/src/Helper/DoesTypedConfigClassExist.php index 34915b6..c8490ed 100644 --- a/src/Helper/DoesTypedConfigClassExist.php +++ b/src/Helper/DoesTypedConfigClassExist.php @@ -4,7 +4,7 @@ namespace Coderg33k\TypedConfigGenerator\Helper; -use CoderG33k\Actions\GetClassForConfig; +use CoderG33k\TypedConfigGenerator\Actions\GetClassForConfig; use CoderG33k\TypedConfig; final class DoesTypedConfigClassExist diff --git a/src/TypedConfig.php b/src/TypedConfig.php index 39e4163..1c72648 100644 --- a/src/TypedConfig.php +++ b/src/TypedConfig.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace CoderG33k; +namespace Coderg33k\TypedConfigGenerator; use Illuminate\Support\Str; -abstract readonly class TypedConfig +abstract class TypedConfig { public static function fromConfig(...$properties): static { diff --git a/src/TypedConfigServiceProvider.php b/src/TypedConfigServiceProvider.php index faa31d5..16dd1d9 100644 --- a/src/TypedConfigServiceProvider.php +++ b/src/TypedConfigServiceProvider.php @@ -4,8 +4,8 @@ namespace Coderg33k\TypedConfigGenerator; -use CoderG33k\Actions\GetClassForConfig; -use CoderG33k\Helper\DoesTypedConfigClassExist; +use Coderg33k\TypedConfigGenerator\Actions\GetClassForConfig; +use Coderg33k\TypedConfigGenerator\Helper\DoesTypedConfigClassExist; use Illuminate\Support\ServiceProvider; final class TypedConfigServiceProvider extends ServiceProvider