Skip to content

Conversation

@vaishnavyogesh
Copy link
Contributor

Description

This PR introduces a new PHP CS Fixer (Pint) configuration rule to enforce fully qualified strict types with automatic symbol imports, and enables parallel processing for faster code formatting. The new rule has been applied across the entire codebase.

The fully_qualified_strict_types rule improves code readability by automatically importing class names and using them without their full namespace in the code, while maintaining proper imports at the top of files.

This prevents additional cleanup commits for formatting fixes

Changes

  • Added pint.json configuration file

    • Configured Laravel preset as the base
    • Added fully_qualified_strict_types rule with import_symbols enabled to automatically import FQCNs (Fully Qualified Class Names)
  • Updated composer.json

    • Enabled parallel mode for Pint execution (--parallel flag) to speed up code formatting
  • Applied code formatting across codebase

    • Ran Pint with the new configuration
    • Applied FQCN imports consistently throughout the project

Copy link
Contributor

@sixlive sixlive left a comment

Choose a reason for hiding this comment

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

YES, this is amazing! Thank you!

@sixlive sixlive merged commit 8d73bfe into prism-php:main Jan 27, 2026
14 checks passed
@vaishnavyogesh vaishnavyogesh deleted the styles/import-fqcn branch January 27, 2026 14:29
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