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

Bump php deps #16

Merged
merged 14 commits into from
Feb 15, 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
2 changes: 1 addition & 1 deletion .phan.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
],

'exclude_file_list' => [
'src/php/compatibility.php',
'src/compatibility.php',
],
]);
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
},

"require-dev" : {
"jbzoo/phpunit" : "6.x-dev",
"jbzoo/phpunit" : ">=5.0.0",
"jbzoo/utils" : ">=4.5.5"
},

"autoload" : {
"files" : ["src/php/compatibility.php"]
"files" : ["src/compatibility.php"]
},

"config" : {
Expand All @@ -53,7 +53,7 @@

"extra" : {
"branch-alias" : {
"dev-master" : "4.x-dev"
"dev-master" : "5.x-dev"
}
}
}
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#

includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- ./vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
level: max
Expand Down
5 changes: 2 additions & 3 deletions src/Makefiles/defines.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ PHP_BIN ?= php
COMPOSER_BIN ?= $(shell if [ $(PHP_BIN) = "php" ]; then echo "composer"; else which composer fi;)
PHP_VERSION_ALIAS ?= $(shell $(PHP_BIN) --version | head -n 1 | cut -d " " -f 2 | cut -c 1,3)
PROJECT_ALIAS ?= $(shell basename `git rev-parse --show-toplevel` | sed 's/-//g')
PHPUNIT_PRETTY_PRINT_PROGRESS ?= true


ifeq ($(strip $(PHP_BIN)),php)
Expand Down Expand Up @@ -80,7 +79,7 @@ endif
ifneq (, $(wildcard ./phpstan.neon))
JBZOO_CONFIG_PHPSTAN ?= `pwd`/phpstan.neon
else
JBZOO_CONFIG_PHPSTAN ?= `pwd`/vendor/jbzoo/codestyle/phpstan.neon
JBZOO_CONFIG_PHPSTAN ?= `pwd`/vendor/jbzoo/codestyle/src/phpstan.neon
endif


Expand Down Expand Up @@ -124,7 +123,7 @@ endif
ifneq (, $(wildcard ./phpbench.json))
JBZOO_CONFIG_PHPBENCH ?= `pwd`/phpbench.json
else
JBZOO_CONFIG_PHPBENCH ?= `pwd`/vendor/jbzoo/codestyle/src/phpbench/phpbench.json
JBZOO_CONFIG_PHPBENCH ?= `pwd`/vendor/jbzoo/codestyle/src/phpbench.json
endif


Expand Down
4 changes: 2 additions & 2 deletions src/Makefiles/project.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ build-phar: ##@Project Compile phar file
$(call download_phar,$(BOX_PHAR),"box")
@$(PHP_BIN) `pwd`/vendor/bin/box.phar --version
@$(PHP_BIN) `pwd`/vendor/bin/box.phar validate -vvv
@$(COMPOSER_BIN) config autoloader-suffix $(PROJECT_ALIAS) -v
@$(COMPOSER_BIN) config autoloader-suffix $(PROJECT_ALIAS) -v
@$(PHP_BIN) `pwd`/vendor/bin/box.phar compile --working-dir="`pwd`" -v
@$(COMPOSER_BIN) config autoloader-suffix --unset -v
@$(COMPOSER_BIN) config autoloader-suffix --unset -v
1 change: 0 additions & 1 deletion src/Makefiles/tests.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ test-phpunit-teamcity:
test-phpunit-local:
@XDEBUG_MODE=coverage $(PHP_BIN) `pwd`/vendor/bin/phpunit \
--configuration="$(JBZOO_CONFIG_PHPUNIT)" \
--printer=Codedungeon\\PHPUnitPrettyResultPrinter\\Printer \
--order-by=random \
--colors=always \
--verbose
Expand Down
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions src/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# JBZoo Toolbox - Codestyle
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @package Codestyle
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @link https://github.com/JBZoo/Codestyle
#

includes:
- ../../../../vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
level: max
checkExplicitMixed: false
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: false
49 changes: 0 additions & 49 deletions src/phpunit/phpunit.xml.dist

This file was deleted.

2 changes: 1 addition & 1 deletion tests/PhpUnitDefinesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testPhanConfig(): void
],
'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
'exclude_file_list' => [
'src/php/compatibility.php',
'src/compatibility.php',
],
'exclude_analysis_directory_list' => [
'vendor/',
Expand Down