Files
PhpSpreadsheet/.phpcs.xml.dist
oleibman 0b22c08ceb Deprecate _calculateFormulaValue for calculateFormulaValue
Remove the leading underscore in a `Calculation` method. PR #4713 eliminated all use of this method in the test suite, but there are still a handful of uses in source. It is not quite equivalent to `calculateFormula`, so it needs to be retained, and needs to be `public` (possibly `internal` but I'm not ready to go there yet). However, the leading underscore is misleading, so drop it. Since it is public, avoid a breaking change by retaining the old name as essentially an alias of the new.

The configuration file for phpcs includes an option to not flag leading underscores in method names. This is the only method for which that option is needed, so it is being removed.
2026-09-16 08:39:39 -07:00

21 lines
594 B
XML

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<file>samples</file>
<file>src</file>
<file>tests</file>
<file>infra</file>
<file>bin</file>
<arg name="report-width" value="200"/>
<arg name="parallel" value="80"/>
<arg name="cache" value="/tmp/.phpspreadsheet.phpcs-cache"/>
<arg name="colors"/>
<arg value="np"/>
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12">
</rule>
</ruleset>