‪TYPO3CMS  10.4
InterfaceMethodChangedMatcherFixture.php
Go to the documentation of this file.
1 <?php
2 
3 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 
19 
24 {
32  public function ‪like1($arg1, $arg2, $arg3)
33  {
34  // Match: Call to ->like() with three arguments has been removed
35  $foo->like1('arg1', 'arg2', 'arg3');
36  }
37 
46  public function ‪like2($arg1, $arg2, $arg3)
47  {
48  // @extensionScannerIgnoreLine
49  // Match: Call to ->like() with three arguments has been removed
50  $foo->like2('arg1', 'arg2', 'arg3');
51  }
52 
59  public function ‪like3($arg1, $arg2)
60  {
61  // No match: Two arguments is ok
62  $foo->like1('arg1', 'arg2');
63  // No match: Static call is fine for interface methods
64  Bar::like1('arg1', 'arg2', 'arg3');
65  }
66 
74  public static function ‪like4($arg1, $arg2, $arg3)
75  {
76  }
77 
85  protected function ‪like5($arg1, $arg2, $arg3)
86  {
87  }
88 }
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like3
‪like3($arg1, $arg2)
Definition: InterfaceMethodChangedMatcherFixture.php:59
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like2
‪like2($arg1, $arg2, $arg3)
Definition: InterfaceMethodChangedMatcherFixture.php:46
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures
Definition: ArrayDimensionMatcherFixture.php:18
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like4
‪static like4($arg1, $arg2, $arg3)
Definition: InterfaceMethodChangedMatcherFixture.php:74
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like1
‪like1($arg1, $arg2, $arg3)
Definition: InterfaceMethodChangedMatcherFixture.php:32
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture\like5
‪like5($arg1, $arg2, $arg3)
Definition: InterfaceMethodChangedMatcherFixture.php:85
‪TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\InterfaceMethodChangedMatcherFixture
Definition: InterfaceMethodChangedMatcherFixture.php:24