File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
src/deepskylog/LaravelGettext/FileLoader Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 37
37
"phpunit/phpunit" : " ~7.0 || ^8.5 || ^9" ,
38
38
"squizlabs/php_codesniffer" : " 1.5.*" ,
39
39
"laravel/laravel" : " ^6.0 || ^7.0 || ^8.0" ,
40
- "php-coveralls/php-coveralls" : " ^2.1"
40
+ "php-coveralls/php-coveralls" : " ^2.1" ,
41
+ "symfony/translation" : " ^6.0"
41
42
},
42
43
"autoload" : {
43
44
"psr-0" : {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function __construct(FileLoader $underlyingFileLoader)
35
35
*
36
36
* @throws InvalidResourceException if stream content has an invalid format
37
37
*/
38
- protected function loadResource ($ resource )
38
+ protected function loadResource (string $ resource ): array
39
39
{
40
40
if (!extension_loaded ('apcu ' )) {
41
41
return $ this ->underlyingFileLoader ->loadResource ($ resource );
Original file line number Diff line number Diff line change @@ -16,30 +16,30 @@ class MoFileLoader extends FileLoader
16
16
*
17
17
* @var float
18
18
*/
19
- const MO_LITTLE_ENDIAN_MAGIC = 0x950412de ;
19
+ public const MO_LITTLE_ENDIAN_MAGIC = 0x950412de ;
20
20
21
21
/**
22
22
* Magic used for validating the format of a MO file as well as
23
23
* detecting if the machine used to create that file was big endian.
24
24
*
25
25
* @var float
26
26
*/
27
- const MO_BIG_ENDIAN_MAGIC = 0xde120495 ;
27
+ public const MO_BIG_ENDIAN_MAGIC = 0xde120495 ;
28
28
29
29
/**
30
30
* The size of the header of a MO file in bytes.
31
31
*
32
32
* @var int Number of bytes
33
33
*/
34
- const MO_HEADER_SIZE = 28 ;
34
+ public const MO_HEADER_SIZE = 28 ;
35
35
36
36
/**
37
37
* Parses machine object (MO) format, independent of the machine's endian it
38
38
* was created on. Both 32bit and 64bit systems are supported.
39
39
*
40
40
* {@inheritdoc}
41
41
*/
42
- protected function loadResource ($ resource )
42
+ protected function loadResource (string $ resource ): array
43
43
{
44
44
$ stream = fopen ($ resource , 'r ' );
45
45
You can’t perform that action at this time.
0 commit comments