From 3fdc3bc3bd48037ef3ca49925c2c92bd98e5c91b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 18 Jun 2022 19:50:09 +0000 Subject: [PATCH 1/2] Update dependency phpstan/phpstan to v1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d4d8e28..164e6d7 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "monolog/monolog": "^2.0@dev", "phpmd/phpmd": "2.8.2", "phpmetrics/phpmetrics": "dev-master@dev", - "phpstan/phpstan": "0.12.14", + "phpstan/phpstan": "1.7.14", "phpunit/phpunit": "*", "squizlabs/php_codesniffer": "3.5.4", "symfony/yaml": "~2.1|~3.0|~4.0" From 962e02ad8635b3f9251e14f954e9684530812ceb Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 18 Jun 2022 19:50:15 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI --- demos/example-ajax.php | 1 - demos/example-logger.php | 1 - demos/example-persistence.php | 1 - src/DebugBar.php | 17 +++++++---------- tests/DebugBarTest.php | 1 + 5 files changed, 8 insertions(+), 13 deletions(-) diff --git a/demos/example-ajax.php b/demos/example-ajax.php index 611f702..7b794cc 100644 --- a/demos/example-ajax.php +++ b/demos/example-ajax.php @@ -3,7 +3,6 @@ require_once 'bootstrap.php'; use atk4\ui\App; -use ATK4PHPDebugBar\DebugBar; class User extends \atk4\data\Model { diff --git a/demos/example-logger.php b/demos/example-logger.php index 32e5dc9..07a939a 100644 --- a/demos/example-logger.php +++ b/demos/example-logger.php @@ -3,7 +3,6 @@ require_once 'bootstrap.php'; use atk4\ui\App; -use ATK4PHPDebugBar\DebugBar; use Monolog\Handler\StreamHandler; use Monolog\Logger; diff --git a/demos/example-persistence.php b/demos/example-persistence.php index f27e59b..cea6d2f 100644 --- a/demos/example-persistence.php +++ b/demos/example-persistence.php @@ -3,7 +3,6 @@ require_once 'bootstrap.php'; use atk4\ui\App; -use ATK4PHPDebugBar\DebugBar; class User extends \atk4\data\Model { diff --git a/src/DebugBar.php b/src/DebugBar.php index 3f2f56e..a6d4891 100644 --- a/src/DebugBar.php +++ b/src/DebugBar.php @@ -119,7 +119,7 @@ public function init(): void } /** - * @param DataCollectorInterface $dataCollector + * @param DataCollectorInterface $dataCollector * * @throws DebugBarException */ @@ -226,10 +226,10 @@ public function getDebugBar(): \DebugBar\DebugBar } /** - * @param string $name + * @param string $name + * @return DataCollectorInterface * * @throws DebugBarException - * @return DataCollectorInterface */ public function getCollector(string $name): DataCollectorInterface { @@ -237,8 +237,7 @@ public function getCollector(string $name): DataCollectorInterface } /** - * @param string $name - * + * @param string $name * @return bool */ public function hasCollector(string $name): bool @@ -247,8 +246,7 @@ public function hasCollector(string $name): bool } /** - * @param string $url - * + * @param string $url * @return $this */ public function setAssetsResourcesUrl(string $url) @@ -259,8 +257,7 @@ public function setAssetsResourcesUrl(string $url) } /** - * @param string $path - * + * @param string $path * @return $this */ public function setAssetsResourcesPath(string $path) @@ -294,7 +291,7 @@ public function addATK4LoggerCollector(): void } /** - * @param Persistence\SQL|null $persistence + * @param Persistence\SQL|null $persistence * * @throws DebugBarException */ diff --git a/tests/DebugBarTest.php b/tests/DebugBarTest.php index ebd60a5..13af12f 100644 --- a/tests/DebugBarTest.php +++ b/tests/DebugBarTest.php @@ -42,6 +42,7 @@ public function testGetDebugBar_AppDynamicMethods() /** * Only for increase coverage, cover 1 line of code. + * * @runInSeparateProcess */ public function testSendMessagesViaHeaders()