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

preparing php7 upgrade #115

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
build/
vendor/
bin/
Expand Down
16 changes: 11 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"role":"Contributor"
}
],
"scripts": {
"test": "php vendor/pestphp/pest/bin/pest",
"rector": "php vendor/rector/rector/bin/rector process"
},
"autoload":{
"psr-4":{
"NilPortugues\\Sql\\QueryBuilder\\":"src/"
Expand All @@ -32,19 +36,21 @@
},
"require":
{
"php": ">=5.5",
"php": ">=7.4",
"nilportugues/sql-query-formatter": "~1.2"
},
"require-dev": {
"phpunit/phpunit": "4.*",
"fabpot/php-cs-fixer": "~1.9",
"nilportugues/php_backslasher": "~0.2"
"phpunit/phpunit": "^9.0",
"friendsofphp/php-cs-fixer": "^2.16",
"pestphp/pest": "^0.1.5",
"rector/rector": "^0.7.26"
},
"config":
{
"bin-dir": "bin"
},
"minimum-stability": "stable",
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
Expand Down
34 changes: 34 additions & 0 deletions rector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
imports:
- { resource: "create-rector.yaml", ignore_errors: 'not_found' }

parameters:
# bleeding edge feature
# is_cache_enabled: true

auto_import_names: true

sets:
# - solid
- 'dead-code'
- 'early-return'
- 'order'
# - 'code-quality'

# - 'performance'
#>blows up - 'psr4'
# - 'phpunit91'
# - 'php74'
#

paths:
- src
- tests

exclude_paths:
- "/vendor/"

php_version_features: '7.4'

services:
Rector\DeadCode\Rector\ClassConst\RemoveUnusedPrivateConstantRector: null
Rector\SOLID\Rector\Class_\RepeatedLiteralToClassConstantRector: null
3 changes: 2 additions & 1 deletion src/Builder/BuilderException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

namespace NilPortugues\Sql\QueryBuilder\Builder;

use Exception;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be one blank line after the last USE statement; 0 found;

/**
* Class BuilderException.
*/
final class BuilderException extends \Exception
final class BuilderException extends Exception
{
}
Loading