Skip to content
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 .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.1','8.2','8.3']
php-versions: ['8.3','8.4','8.5']
name: PHP ${{ matrix.php-versions }}
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. Hostnet version",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.3",
"composer-plugin-api": "^2.0.0",
"hostnet/path-composer-plugin-lib": "^1.0.5",
"slevomat/coding-standard": "^8.6.2",
Expand All @@ -13,7 +13,7 @@
},
"require-dev": {
"composer/composer": "^2.1.14",
"phpunit/phpunit": "^9.5.10"
"phpunit/phpunit": "^11.5.55"
},
"autoload": {
"psr-0": {
Expand Down
14 changes: 8 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true" bootstrap="vendor/squizlabs/php_codesniffer/tests/bootstrap.php">
<coverage>
<include>
<directory>./src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" colors="true" bootstrap="vendor/squizlabs/php_codesniffer/tests/bootstrap.php">
<testsuites>
<testsuite name="hostnet/phpcs-tool test suite">
<directory>./test/</directory>
<exclude>./test/Hostnet/Tests/AbstractSniffUnitTest.php</exclude>
<exclude>./test/Hostnet/Tests/CopiedAbstractSniffUnitTest.php</exclude>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class CopyrightMustBeBeforeDeclareSniff implements Sniff
{
private const ERROR = 'declare(strict_types=1) should be after the copyright statement';
private const string ERROR = 'declare(strict_types=1) should be after the copyright statement';

/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class VariableAndPropertyMustBeInSnakeCaseSniff implements Sniff
{
private const SUPER_GLOBALS = [
private const array SUPER_GLOBALS = [
'GLOBALS',
'_SERVER',
'_GET',
Expand Down
145 changes: 0 additions & 145 deletions src/Hostnet/Sniffs/Commenting/AtCoversCounterPartSniff.php

This file was deleted.

68 changes: 0 additions & 68 deletions src/Hostnet/Sniffs/Commenting/AtCoversFullyQualifiedNameSniff.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Hostnet/Sniffs/Declares/StrictSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
class StrictSniff implements Sniff
{
private const ERROR = 'declare(strict_types = 1) not found';
private const string ERROR = 'declare(strict_types = 1) not found';

private const R_VALUE = [
private const array R_VALUE = [
T_LNUMBER, //integers
T_STRING, //identifiers
T_NUM_STRING, // numeric array index inside string
Expand Down
101 changes: 0 additions & 101 deletions src/Hostnet/Sniffs/PhpUnit/NamespaceSniff.php

This file was deleted.

Loading
Loading