Skip to content

Commit ef9e4d2

Browse files
authored
Merge branch '1.24' into fix/902
2 parents 21a8454 + 3593446 commit ef9e4d2

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Fix internal deprecations in Doctrine's populator by @gnutix in (#889)
1212
- Fix mobile phone number pattern for France by @ker0x in (#859)
1313
- PHP 8.4 Support by @Jubeki in (#904)
14+
- Add missing return type in annotations (#923)
1415

1516
- Added support for PHP 8.4 (#904)
1617

src/Faker/Generator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ public function parse($string)
763763
* Get a random MIME type
764764
*
765765
* @example 'video/avi'
766+
*
767+
* @return string
766768
*/
767769
public function mimeType()
768770
{
@@ -773,6 +775,8 @@ public function mimeType()
773775
* Get a random file extension (without a dot)
774776
*
775777
* @example avi
778+
*
779+
* @return string
776780
*/
777781
public function fileExtension()
778782
{
@@ -781,6 +785,8 @@ public function fileExtension()
781785

782786
/**
783787
* Get a full path to a new real file on the system.
788+
*
789+
* @return string
784790
*/
785791
public function filePath()
786792
{

src/Faker/Provider/Image.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public static function imageUrl(
5555
trigger_deprecation(
5656
'fakerphp/faker',
5757
'1.20',
58-
'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
58+
'%s is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
59+
__CLASS__,
5960
);
6061

6162
// Validate image format
@@ -119,7 +120,8 @@ public static function image(
119120
trigger_deprecation(
120121
'fakerphp/faker',
121122
'1.20',
122-
'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
123+
'%s is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
124+
__CLASS__,
123125
);
124126

125127
$dir = null === $dir ? sys_get_temp_dir() : $dir; // GNU/Linux / OS X / Windows compatible
@@ -173,7 +175,8 @@ public static function getFormats(): array
173175
trigger_deprecation(
174176
'fakerphp/faker',
175177
'1.20',
176-
'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
178+
'%s is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
179+
__CLASS__,
177180
);
178181

179182
return array_keys(static::getFormatConstants());
@@ -184,7 +187,8 @@ public static function getFormatConstants(): array
184187
trigger_deprecation(
185188
'fakerphp/faker',
186189
'1.20',
187-
'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
190+
'%s is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
191+
__CLASS__,
188192
);
189193

190194
return [

0 commit comments

Comments
 (0)