‪TYPO3CMS  9.5
InterfaceMethodChangedMatcherFixture.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
22 {
30  public function ‪like1($arg1, $arg2, $arg3)
31  {
32  // Match: Call to ->like() with three arguments has been removed
33  $foo->like1('arg1', 'arg2', 'arg3');
34  }
35 
44  public function ‪like2($arg1, $arg2, $arg3)
45  {
46  // @extensionScannerIgnoreLine
47  // Match: Call to ->like() with three arguments has been removed
48  $foo->like2('arg1', 'arg2', 'arg3');
49  }
50 
57  public function ‪like3($arg1, $arg2)
58  {
59  // No match: Two arguments is ok
60  $foo->like1('arg1', 'arg2');
61  // No match: Static call is fine for interface methods
62  Bar::like1('arg1', 'arg2', 'arg3');
63  }
64 
72  public static function ‪like4($arg1, $arg2, $arg3)
73  {
74  }
75 
83  protected function ‪like5($arg1, $arg2, $arg3)
84  {
85  }
86 }
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like3
‪like3($arg1, $arg2)
Definition: InterfaceMethodChangedMatcherFixture.php:57
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like2
‪like2($arg1, $arg2, $arg3)
Definition: InterfaceMethodChangedMatcherFixture.php:44
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures
Definition: ArrayDimensionMatcherFixture.php:3
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like4
‪static like4($arg1, $arg2, $arg3)
Definition: InterfaceMethodChangedMatcherFixture.php:72
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like1
‪like1($arg1, $arg2, $arg3)
Definition: InterfaceMethodChangedMatcherFixture.php:30
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like5
‪like5($arg1, $arg2, $arg3)
Definition: InterfaceMethodChangedMatcherFixture.php:83
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture
Definition: InterfaceMethodChangedMatcherFixture.php:22