1 | <?php |
||
2 | |||
3 | /** |
||
4 | * Copyright MediaCT. All rights reserved. |
||
5 | * https://www.mediact.nl |
||
6 | */ |
||
7 | |||
8 | namespace Mediact\CodingStandard; |
||
9 | |||
10 | use PHP_CodeSniffer\Config; |
||
11 | |||
12 | trait PhpVersionTrait |
||
13 | { |
||
14 | /** |
||
15 | * Gets the PHP version. |
||
16 | * |
||
17 | * @return int |
||
18 | */ |
||
19 | protected function getPhpVersion() |
||
20 | { |
||
21 | return Config::getConfigData('php_version') |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
22 | ?: PHP_VERSION_ID; |
||
23 | } |
||
24 | } |
||
25 |