Unverified Commit dcd86aa2 authored by Klaus Purer's avatar Klaus Purer Committed by GitHub
Browse files

refactor(phpstan): Fix PHPStan reports for level 4 (#3104477)

parent 1e50c14d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1053,8 +1053,6 @@ class FunctionCommentSniff implements Sniff
            return true;
        }//end while

        return false;

    }//end isAliasedType()


+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ class ScopeIndentSniff implements Sniff
     * or PHP open/close tags can escape from here and have their own
     * rules elsewhere.
     *
     * @var int[]
     * @var array<int, int|string>
     */
    public $ignoreIndentationTokens = [];

+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class ArrayUnitTest extends CoderSniffUnitTest
     *
     * @return array<int, int>
     */
    protected function getErrorList(string $testFile)
    protected function getErrorList(string $testFile): array
    {
        switch ($testFile) {
        case 'ArrayUnitTest.inc':
@@ -51,7 +51,7 @@ class ArrayUnitTest extends CoderSniffUnitTest
     *
     * @return array<int, int>
     */
    protected function getWarningList(string $testFile)
    protected function getWarningList(string $testFile): array
    {
        switch ($testFile) {
        case 'ArrayUnitTest.inc':
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class DisallowLongArraySyntaxUnitTest extends CoderSniffUnitTest
     *
     * @return array<int, int>
     */
    protected function getErrorList(string $testFile)
    protected function getErrorList(string $testFile): array
    {
        switch ($testFile) {
        case 'DisallowLongArraySyntaxUnitTest.2.inc':
@@ -41,7 +41,7 @@ class DisallowLongArraySyntaxUnitTest extends CoderSniffUnitTest
     *
     * @return array<int, int>
     */
    protected function getWarningList(string $testFile)
    protected function getWarningList(string $testFile): array
    {
        return [];

+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class ClassCreateInstanceUnitTest extends CoderSniffUnitTest
     *
     * @return array<int, int>
     */
    protected function getErrorList(string $testFile)
    protected function getErrorList(string $testFile): array
    {
        return [
            3  => 1,
@@ -49,7 +49,7 @@ class ClassCreateInstanceUnitTest extends CoderSniffUnitTest
     *
     * @return array<int, int>
     */
    protected function getWarningList(string $testFile)
    protected function getWarningList(string $testFile): array
    {
        return [];

Loading