Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Illuminate\Console\GeneratorCommand #7

Merged
merged 30 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Ignore following folder/file.
/.github export-ignore
/tests export-ignore
/workbench export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/phpstan-baseline.neon export-ignore
Expand Down
15 changes: 10 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,21 @@
},
"require": {
"php": "^8.0",
"illuminate/console": "^9.45",
"illuminate/filesystem": "^9.45"
"illuminate/console": "^9.52.15",
"illuminate/filesystem": "^9.52.15"
},
"require-dev": {
"fakerphp/faker": "^1.21",
"mockery/mockery": "^1.5.1",
"laravel/framework": "^9.52.15",
"laravel/pint": "^1.1",
"orchestra/testbench": "^7.30",
"phpstan/phpstan": "^1.10.6"
"orchestra/testbench-core": "^7.30",
"phpstan/phpstan": "^1.10.6",
"phpunit/phpunit": "^9.6",
"symfony/yaml": "^6.0.9"
},
"conflict": {
"orchestra/canvas": "<7.8.0",
"orchestra/canvas": "<7.9.0",
"orchestra/testbench-core": "<7.25.0"
},
"config": {
Expand Down
18 changes: 4 additions & 14 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
parameters:
ignoreErrors:
-
message: "#^Method Orchestra\\\\Canvas\\\\Core\\\\Contracts\\\\GeneratesCodeListener\\:\\:codeAlreadyExists\\(\\) has no return type specified\\.$#"
message: "#^Cannot access offset 'path' on Illuminate\\\\Contracts\\\\Foundation\\\\Application\\.$#"
count: 1
path: src/Contracts/GeneratesCodeListener.php
path: src/Commands/GeneratorCommand.php

-
message: "#^Method Orchestra\\\\Canvas\\\\Core\\\\Contracts\\\\GeneratesCodeListener\\:\\:codeHasBeenGenerated\\(\\) has no return type specified\\.$#"
message: "#^Parameter \\#1 \\$app of class Orchestra\\\\Canvas\\\\Core\\\\Presets\\\\Laravel constructor expects Illuminate\\\\Contracts\\\\Foundation\\\\Application, Illuminate\\\\Contracts\\\\Container\\\\Container given\\.$#"
count: 1
path: src/Contracts/GeneratesCodeListener.php

-
message: "#^Call to an undefined method Illuminate\\\\Contracts\\\\Container\\\\Container\\:\\:basePath\\(\\)\\.$#"
count: 1
path: src/LaravelServiceProvider.php

-
message: "#^Method Orchestra\\\\Canvas\\\\Core\\\\Presets\\\\Preset\\:\\:config\\(\\) has no return type specified\\.$#"
count: 1
path: src/Presets/Preset.php
path: src/PresetManager.php
3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ parameters:
# The level 8 is the highest level
level: 7

ignoreErrors:
- '#Method [a-zA-Z\\\<\>]+::handle\(\) should return bool\|null but returns int.#'

checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
treatPhpDocTypesAsCertain: false
24 changes: 12 additions & 12 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true">
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true">
<coverage includeUncoveredFiles="false">
<include>
<directory suffix=".php">src/</directory>
Expand Down
92 changes: 0 additions & 92 deletions src/CodeGenerator.php

This file was deleted.

105 changes: 0 additions & 105 deletions src/Commands/Command.php

This file was deleted.

Loading