From aefac3efb9fada806867108c6fd1d36bba156ed8 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 6 Sep 2024 10:18:51 +0200 Subject: CI fix warnings (#6780) --- composer.json | 2 +- composer.lock | 10 +++++----- tests/app/Models/SearchTest.php | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index f2d27bb1a..c92496823 100644 --- a/composer.json +++ b/composer.json @@ -70,7 +70,7 @@ "phpcbf": "phpcbf . -p -s", "phpstan": "phpstan analyse --memory-limit 512M .", "phpstan-next": "phpstan analyse --memory-limit 512M -c phpstan-next.neon .", - "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --display-notices ./tests", + "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --display-notices --display-phpunit-deprecations ./tests", "translations": "cli/manipulate.translation.php -a format", "test": [ "@php-lint", diff --git a/composer.lock b/composer.lock index 6d5f7e045..4a8174047 100644 --- a/composer.lock +++ b/composer.lock @@ -245,16 +245,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.12.1", + "version": "1.12.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2" + "reference": "0ca1c7bb55fca8fe6448f16fff0f311ccec960a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2", - "reference": "d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/0ca1c7bb55fca8fe6448f16fff0f311ccec960a1", + "reference": "0ca1c7bb55fca8fe6448f16fff0f311ccec960a1", "shasum": "" }, "require": { @@ -299,7 +299,7 @@ "type": "github" } ], - "time": "2024-09-03T19:55:22+00:00" + "time": "2024-09-05T16:09:28+00:00" }, { "name": "phpstan/phpstan-phpunit", diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php index a25adc160..58eb875e0 100644 --- a/tests/app/Models/SearchTest.php +++ b/tests/app/Models/SearchTest.php @@ -454,7 +454,7 @@ class SearchTest extends PHPUnit\Framework\TestCase { } /** @return array> */ - public function provideRegexPostreSQL(): array { + public static function provideRegexPostreSQL(): array { return [ [ 'intitle:/^ab$/', @@ -522,7 +522,7 @@ class SearchTest extends PHPUnit\Framework\TestCase { } /** @return array> */ - public function provideRegexMariaDB(): array { + public static function provideRegexMariaDB(): array { return [ [ 'intitle:/^ab$/', @@ -555,7 +555,7 @@ class SearchTest extends PHPUnit\Framework\TestCase { } /** @return array> */ - public function provideRegexMySQL(): array { + public static function provideRegexMySQL(): array { return [ [ 'intitle:/^ab$/', @@ -586,7 +586,7 @@ class SearchTest extends PHPUnit\Framework\TestCase { } /** @return array> */ - public function provideRegexSQLite(): array { + public static function provideRegexSQLite(): array { return [ [ 'intitle:/^ab$/', -- cgit v1.2.3