Skip to content

Pint ​

php
final class StanislasPoisson\DevTools\Pint

The configuration of Pint of a project: the base rules of this package, and the pint.json of the project, which adds its own rules and its own exclusions.

Source: src/Pint.php

Methods ​

merge() ​

php
public static function merge(array $base, array $project): array

The rules of the project replace the ones of the base, and its exclusions are added to the ones of the base.

Returns array<string, mixed>

write() ​

php
public static function write(string $root): string

Writes the configuration that Pint has to use in the build directory of the project.

Returns string the path of the file

Throws RuntimeException when a file cannot be read or written

Documentation of 1.1.1 , built from 671a0b4 on 1.1.1 by pipeline #38133304549 on 2026-10-10.