Skip to content

Commit 3ad24ba

Browse files
committed
Remove return type to prevent PHP-CS fix errors
1 parent d59d6c3 commit 3ad24ba

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ ti: vendor
5555

5656
vendor:
5757
$(COMPOSER) update $(DEPS_STRATEGY)
58-
$(EXEC_PHP) composer -d tools/php-cs-fixer update
5958

6059
PHP_CS_FIXER = docker-compose run --rm -T php tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -vv --allow-risky=yes
6160

6261
phpcs:
63-
PHP_VERSION=8.1 docker-compose run --rm -T php composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
62+
PHP_VERSION=8.1 $(EXEC_PHP) composer -d tools/php-cs-fixer update
6463
PHP_VERSION=8.1 $(PHP_CS_FIXER) --dry-run
6564

6665
phpcbf:
66+
PHP_VERSION=8.1 $(EXEC_PHP) composer -d tools/php-cs-fixer update
6767
PHP_VERSION=8.1 $(PHP_CS_FIXER)
6868

6969
phpstan: vendor

phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ parameters:
1818
count: 1
1919
path: src/Text/functions.php
2020

21+
-
22+
message: "#^Method PhpSpellcheck\\\\MisspellingHandler\\\\MisspellingHandlerInterface\\:\\:handle\\(\\) has no return type specified\\.$#"
23+
count: 1
24+
path: src/MisspellingHandler/MisspellingHandlerInterface.php
25+
2126
-
2227
message: "#^Function pspell_config_create is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_config_create;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#"
2328
count: 1

src/MisspellingHandler/MisspellingHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ interface MisspellingHandlerInterface
1111
/**
1212
* @param MisspellingInterface[] $misspellings
1313
*/
14-
public function handle(iterable $misspellings): mixed;
14+
public function handle(iterable $misspellings);
1515
}

0 commit comments

Comments
 (0)