Skip to content

PHPCS 4.0 made Config::setConfigData() a non-static method#8

Merged
spaze merged 1 commit intomainfrom
spaze/setConfigData-is-not-static
Sep 17, 2025
Merged

PHPCS 4.0 made Config::setConfigData() a non-static method#8
spaze merged 1 commit intomainfrom
spaze/setConfigData-is-not-static

Conversation

@spaze
Copy link
Owner

@spaze spaze commented Sep 17, 2025

The Config object is created in Runner::runPHPCS() so it cannot be modified from "outside" before runPHPCS() is called.

The Config object is created in Runner::runPHPCS() so it cannot be modified from "outside" before runPHPCS() is called.
@spaze spaze requested a review from Copilot September 17, 2025 00:04
@spaze spaze self-assigned this Sep 17, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates the StandardsInstaller to be compatible with PHPCS 4.0 by replacing the deprecated static Config::setConfigData() method call with command-line argument injection.

  • Replaces static Config method call with $_SERVER['argv'] manipulation
  • Adds runtime configuration setting for installed_paths via command-line arguments

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@spaze spaze merged commit 8ef572e into main Sep 17, 2025
20 checks passed
@spaze spaze deleted the spaze/setConfigData-is-not-static branch September 17, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants