Upgrade to PHP 8.5 and apply Rector cleanup

Open
#634 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 5 days

@kayjoosten is already working on this.

Since Oct 16, 2026.

  • #675 by @kayjoosten — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
docker, php

Research direction

Start with composer.json, the Dockerfile(s), docker-compose configuration, and CI configuration to map the PHP 8.5 upgrade. Add the requested rector.php configuration, then apply Rector across bin, config, src, and tests and review the listed compatibility fixes. Done means Composer dependencies are updated and the full test suite plus static analysis are green on PHP 8.5.

Written by the indexing model from the issue text.

Description

Goal

Upgrade PHP runtime to 8.5, update Composer dependencies, and apply Rector cleanup.

What needs to be done

  • Bump composer.json PHP constraint to ^8.5, run composer update
  • Update Dockerfile(s)/docker-compose and CI to PHP 8.5
  • Add rector/rector: ^2.4, add rector.php:
    return RectorConfig::configure()
        ->withPaths([__DIR__.'/bin', __DIR__.'/config', __DIR__.'/src', __DIR__.'/tests'])
        ->withPhpSets()
        ->withComposerBased(doctrine: true, symfony: true, phpunit: true)
        ->withAttributesSets(doctrine: true, symfony: true, phpunit: true)
        ->withSkip([
            \Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector::class,
            \Rector\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector::class,
        ]);
    
  • Apply rector, fix what it can't (implicit nullable params, __sleep/__wakeup, removed functions like xml_parser_free())
  • Full test suite + static analysis green on PHP 8.5
Dominant language
PHP
Stars
6
Forks
3
Avg merge
6d 9h
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenConext/Stepup-Gateway

All issues in OpenConext/Stepup-Gateway

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.