Code development platform for open source projects from the European Union institutions

Verified Commit df1b6e86 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

refactor: Update codebase for PHP >= 8.0.2.

parent dec94c6f
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
/.github export-ignore
/docker export-ignore
/docs export-ignore
/features export-ignore
/spec export-ignore
/src/Tests export-ignore
/tests export-ignore
/.auto-changelog export-ignore
/.editorconfig export-ignore
/.envrc export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.prettierignore export-ignore
/.prettierrc export-ignore
/.scrutinizer.yml export-ignore
/behat.yaml export-ignore
/behat.yaml.dist export-ignore
/CHANGELOG.md export-ignore
/docker-compose.yaml export-ignore
/grumphp.yml export-ignore
/grumphp.yml.dist export-ignore
/infection.json export-ignore
/infection.json.dist export-ignore
/phpspec.yml export-ignore
/LICENSE export-ignore
/MAINTAINERS.txt export-ignore
/phpspec.yml.dist export-ignore
/phpstan.neon export-ignore
/phpstan.neon.dist export-ignore
/psalm.xml export-ignore
/README.md export-ignore
+8 −5
Original line number Diff line number Diff line
build:
    image: default-bionic
    nodes:
        analysis:
            tests:
                override:
                    - php-scrutinizer-run
        php81:
            environment:
                php:
                    version: 8.1
                    pecl_extensions:
                        - pcov

filter:
    paths:
        - 'src/*'
        - "src/*"

tools:
    external_code_coverage:
+16 −13
Original line number Diff line number Diff line
@@ -4,21 +4,24 @@
    "license": "BSD-3-Clause",
    "type": "library",
    "require": {
        "php": ">= 7.1.3",
        "ecphp/cas-lib": "1.1.*"
        "php": ">= 8.0.2",
        "ecphp/cas-lib": "^1"
    },
    "require-dev": {
        "ext-pcov": "*",
        "ecphp/php-conventions": "^1",
        "friends-of-phpspec/phpspec-code-coverage": "^4.3.2",
        "infection/infection": "^0.13.6 || ^0.15.3 || ^0.23 || ^0.24",
        "infection/phpspec-adapter": "^0.1.2",
        "friends-of-phpspec/phpspec-code-coverage": "^6",
        "infection/infection": "^0.26",
        "infection/phpspec-adapter": "^0.2",
        "monolog/monolog": "^1.0",
        "nyholm/psr7": "^1.2.1",
        "nyholm/psr7-server": "^0.4.1 || ^1.0.0",
        "phpspec/phpspec": "^5.1.2 || ^6.2.1",
        "phpstan/phpstan-strict-rules": "^0.12",
        "symfony/cache": "^4.4 || ^5",
        "symfony/http-client": "^4.4 || ^5"
        "nyholm/psr7": "^1",
        "nyholm/psr7-server": "^1.0",
        "phpspec/phpspec": "^7",
        "phpstan/phpstan-strict-rules": "^1",
        "phpstan/phpstan-symfony": "^1.1",
        "symfony/cache": "^6.0",
        "symfony/http-client": "^6.0",
        "symfony/security-core": "^6.0"
    },
    "autoload": {
        "psr-4": {
@@ -35,8 +38,8 @@
        }
    },
    "scripts": {
        "changelog-unreleased": "docker-compose run auto_changelog -c .auto-changelog -u",
        "changelog-version": "docker-compose run auto_changelog -c .auto-changelog -v",
        "changelog-unreleased": "auto-changelog -c .auto-changelog -u",
        "changelog-version": "auto-changelog -c .auto-changelog -v",
        "grumphp": "./vendor/bin/grumphp run",
        "phpinsights": "./vendor/bin/phpinsights analyse src/",
        "phpspec": "./vendor/bin/phpspec run"
+5 −3
Original line number Diff line number Diff line
{
    "timeout": 10,
    "timeout": 30,
    "source": {
        "directories": [
            "src"
        ]
    },
    "logs": {
        "github": true,
        "text": "build/infection.log",
        "summary": "build/summary.log",
        "debug": "build/debug.log",
        "perMutator": "build/per-mutator.md",
        "badge": {
            "branch": "master"
        "html": "build/report.html",
        "stryker": {
            "report": "master"
        }
    },
    "testFramework":"phpspec"
+0 −22
Original line number Diff line number Diff line
@@ -54,28 +54,6 @@ class EcasPropertiesSpec extends ObjectBehavior
                    ],
                ]
            );

        $this
            ->offsetExists('foo')
            ->shouldReturn(true);

        $this
            ->offsetGet('foo')
            ->shouldReturn('bar');

        $this
            ->offsetSet('bar', 'rab');

        $this
            ->offsetGet('bar')
            ->shouldReturn('rab');

        $this
            ->offsetUnset('bar');

        $this
            ->offsetExists('bar')
            ->shouldReturn(false);
    }

    public function let()
Loading