Skip to content

Update dependencies and clean up scoped vendor - #24

Merged
soderlind merged 10 commits into
mainfrom
update/dependencies-2026-02
Mar 2, 2026
Merged

Update dependencies and clean up scoped vendor#24
soderlind merged 10 commits into
mainfrom
update/dependencies-2026-02

Conversation

@soderlind

Copy link
Copy Markdown
Collaborator

This pull request includes dependency updates, configuration improvements, and codebase cleanup to enhance compatibility and maintainability. The most important changes are grouped below by theme.

Dependency and compatibility updates:

  • Relaxed version constraints for microsoft/azure-storage-file and microsoft/azure-storage-blob in composer.json to allow for patch updates, and updated dekode/coding-standards to accept any 4.x version.
  • Updated dev dependencies in php-scoper/composer.json to newer versions for humbug/php-scoper and pxlrbt/php-scoper-prefix-remover.
  • Added a PHP version compatibility check in vendor-prefixed/autoload.php to prevent autoloading on PHP versions older than 5.6, improving error handling for unsupported environments.

Configuration improvements:

  • Added a config section to composer.json to allow the dealerdirect/phpcodesniffer-composer-installer plugin, improving plugin management during Composer operations.
  • Updated php-scoper/scoper.inc.php to scope only runtime dependencies, not dev tools, and replaced whitelist-* options with expose-* for global constants, classes, and functions, aligning with newer php-scoper configuration standards.
  • Added .vscode/settings.json to enable SARIF viewer integration with GitHub Code Scanning for improved developer experience.

Codebase cleanup:

  • Changed the type of private static $blob_client from false to null in includes/class-controller.php, and updated the conditional check in get_blob_client() to match, improving clarity and consistency in client initialization logic. [1] [2]

- Bump microsoft/azure-storage-blob ~1.5 (1.5.4)
- Bump microsoft/azure-storage-file ~1.2 (1.2.5)
- Bump guzzlehttp/guzzle 7.4.0 -> 7.8.2 (transitive)
- Bump guzzlehttp/psr7 1.8.4 -> 1.9.1
- Bump squizlabs/php_codesniffer 3.6.1 -> 3.13.5
- Upgrade php-scoper 0.14 -> 0.18.11
- Fix scoper config: scope only runtime deps, not dev tools
- Rename whitelist-global-* to expose-global-* (scoper 0.18)
- Fix type-safety bug: $blob_client default false -> null
- Add plugin-specific .gitignore
- Add composer.lock for reproducible builds
- Generate PHPCS SARIF report (0 errors, 0 warnings)
@soderlind
soderlind requested a review from Clorith February 22, 2026 18:38
Replaces CodeQL (which doesn't support PHP) with PHPCS
code scanning via SARIF upload to GitHub Code Scanning.
@github-advanced-security

Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Overrides the default setup that was scanning for JavaScript
(which this repo doesn't have). Scans GitHub Actions YAML instead.
- Updated the workflow name format for consistency.
- Removed the scheduled cron job as it was unnecessary.
- Simplified the job structure by eliminating unused permissions and strategy settings.
- Clarified step names for better readability.
- Ensured the CodeQL initialization uses a fixed language (PHP) instead of a matrix.
@soderlind
soderlind merged commit 08ddbf6 into main Mar 2, 2026
2 checks passed
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