|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +namespace Rector\Tests\Php85\Rector\FuncCall\RemoveFinfoBufferContextArgRector\Fixture; |
| 6 | + |
| 7 | +finfo_buffer($finfo, $fileContents); |
| 8 | +finfo_buffer($finfo, $fileContents, FILEINFO_NONE); |
| 9 | +finfo_buffer($finfo, $fileContents, FILEINFO_NONE, $context); |
| 10 | +finfo_buffer($finfo, $fileContents, FILEINFO_NONE, context: $context); |
| 11 | +finfo_buffer($finfo, $fileContents, flags: FILEINFO_NONE, context: $context); |
| 12 | +finfo_buffer($finfo, $fileContents, context: $context); |
| 13 | +finfo_buffer($finfo, $fileContents, context: $context, flags: FILEINFO_NONE); |
| 14 | +finfo_buffer(...[$finfo, $fileContents]); |
| 15 | +finfo_buffer(...[$finfo, $fileContents, $context]); |
| 16 | +finfo_buffer(...[$finfo, $fileContents, FILEINFO_NONE, $context]); |
| 17 | + |
| 18 | +function foo(\finfo $finfo): void |
| 19 | +{ |
| 20 | + $finfo->buffer($fileContents, FILEINFO_NONE, $context); |
| 21 | + $finfo->buffer($fileContents, FILEINFO_NONE, context: $context); |
| 22 | + $finfo->buffer($fileContents, flags: FILEINFO_NONE, context: $context); |
| 23 | + $finfo->buffer($fileContents, context: $context); |
| 24 | + $finfo->buffer($fileContents, context: $context, flags: FILEINFO_NONE); |
| 25 | + $finfo->buffer(...[$fileContents]); |
| 26 | + $finfo->buffer(...[$fileContents, $context]); |
| 27 | + $finfo->buffer(...[$fileContents, FILEINFO_NONE, $context]); |
| 28 | +} |
| 29 | + |
| 30 | +?> |
| 31 | +----- |
| 32 | +<?php |
| 33 | + |
| 34 | +declare(strict_types=1); |
| 35 | + |
| 36 | +namespace Rector\Tests\Php85\Rector\FuncCall\RemoveFinfoBufferContextArgRector\Fixture; |
| 37 | + |
| 38 | +finfo_buffer($finfo, $fileContents); |
| 39 | +finfo_buffer($finfo, $fileContents, FILEINFO_NONE); |
| 40 | +finfo_buffer($finfo, $fileContents, FILEINFO_NONE); |
| 41 | +finfo_buffer($finfo, $fileContents, FILEINFO_NONE); |
| 42 | +finfo_buffer($finfo, $fileContents, flags: FILEINFO_NONE); |
| 43 | +finfo_buffer($finfo, $fileContents); |
| 44 | +finfo_buffer($finfo, $fileContents, flags: FILEINFO_NONE); |
| 45 | +finfo_buffer(...[$finfo, $fileContents]); |
| 46 | +finfo_buffer(...[$finfo, $fileContents, $context]); |
| 47 | +finfo_buffer(...[$finfo, $fileContents, FILEINFO_NONE, $context]); |
| 48 | + |
| 49 | +function foo(\finfo $finfo): void |
| 50 | +{ |
| 51 | + $finfo->buffer($fileContents, FILEINFO_NONE); |
| 52 | + $finfo->buffer($fileContents, FILEINFO_NONE); |
| 53 | + $finfo->buffer($fileContents, flags: FILEINFO_NONE); |
| 54 | + $finfo->buffer($fileContents); |
| 55 | + $finfo->buffer($fileContents, flags: FILEINFO_NONE); |
| 56 | + $finfo->buffer(...[$fileContents]); |
| 57 | + $finfo->buffer(...[$fileContents, $context]); |
| 58 | + $finfo->buffer(...[$fileContents, FILEINFO_NONE, $context]); |
| 59 | +} |
| 60 | + |
| 61 | +?> |
0 commit comments