Skip to content

Mark the classes as final, they're security-related after all#27

Merged
spaze merged 1 commit into
mainfrom
spaze/final-classes
Apr 10, 2026
Merged

Mark the classes as final, they're security-related after all#27
spaze merged 1 commit into
mainfrom
spaze/final-classes

Conversation

@spaze
Copy link
Copy Markdown
Owner

@spaze spaze commented Apr 10, 2026

No description provided.

@spaze spaze requested a review from Copilot April 10, 2026 01:18
@spaze spaze self-assigned this Apr 10, 2026
Copy link
Copy Markdown

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

This PR hardens the library’s public surface by preventing inheritance of its two core, security-related classes.

Changes:

  • Mark Spaze\PhpInfo\SensitiveValueSanitizer as final.
  • Mark Spaze\PhpInfo\PhpInfo as final.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/SensitiveValueSanitizer.php Declares the sanitizer class as final to disallow subclass overrides.
src/PhpInfo.php Declares the main PhpInfo entry-point class as final to disallow subclass overrides.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/SensitiveValueSanitizer.php
Comment thread src/PhpInfo.php
@spaze spaze merged commit 9b86553 into main Apr 10, 2026
28 checks passed
@spaze spaze deleted the spaze/final-classes branch April 10, 2026 10:19
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