diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml new file mode 100644 index 00000000..b115ab1d --- /dev/null +++ b/.github/workflows/composer-require-checker.yml @@ -0,0 +1,33 @@ +on: + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + - 'psalm.xml' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + - 'psalm.xml' + +name: Composer require checker + +jobs: + composer-require-checker: + uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master + with: + os: >- + ['ubuntu-latest'] + php: >- + ['8.1'] diff --git a/composer.json b/composer.json index 5473736d..d925fb73 100644 --- a/composer.json +++ b/composer.json @@ -33,9 +33,14 @@ "php": "^8.1", "httpsoft/http-basis": "^1.1", "phpspec/php-diff": "^1.1.3", + "psr/http-message": "^2.0", + "symfony/console": "^6.0|^7.0", + "yiisoft/active-record": "dev-master", "yiisoft/aliases": "^3.0", "yiisoft/arrays": "^2.1|^3.0", "yiisoft/data-response": "^2.0", + "yiisoft/db": "1.2 as dev-master", + "yiisoft/friendly-exception": "^1.1", "yiisoft/http": "^1.2", "yiisoft/hydrator": "^1.0", "yiisoft/injector": "^1.1", @@ -48,6 +53,7 @@ "yiisoft/yii-middleware": "^1.0" }, "require-dev": { + "maglnet/composer-require-checker": "^4.2", "jetbrains/phpstorm-attributes": "^1.0", "nyholm/psr7": "^1.5", "phpunit/phpunit": "^10.2", @@ -55,9 +61,7 @@ "roave/infection-static-analysis-plugin": "^1.23", "spatie/phpunit-watcher": "^1.23", "vimeo/psalm": "^5.13", - "yiisoft/active-record": "dev-master", "yiisoft/cache": "^3.0", - "yiisoft/db": "1.2 as dev-master", "yiisoft/db-sqlite": "^1.0", "yiisoft/di": "^1.1", "yiisoft/dummy-provider": "^1.0", diff --git a/src/Component/CodeFile/CodeFileWriteResult.php b/src/Component/CodeFile/CodeFileWriteResult.php index f0f6b406..6b3b1098 100644 --- a/src/Component/CodeFile/CodeFileWriteResult.php +++ b/src/Component/CodeFile/CodeFileWriteResult.php @@ -4,8 +4,6 @@ namespace Yiisoft\Yii\Gii\Component\CodeFile; -use JetBrains\PhpStorm\ArrayShape; - class CodeFileWriteResult { private array $results = []; @@ -28,11 +26,6 @@ public function addError(CodeFile $file, string $error): void ]; } - #[ArrayShape([ - 'id' => 'string', - 'status' => 'string', - 'error' => 'null|string', - ])] public function getResults(): array { return $this->results;