File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 11
11
- Fix internal deprecations in Doctrine's populator by @gnutix in (#889 )
12
12
- Fix mobile phone number pattern for France by @ker0x in (#859 )
13
13
- PHP 8.4 Support by @Jubeki in (#904 )
14
+ - Add missing return type in annotations (#923 )
14
15
15
16
- Added support for PHP 8.4 (#904 )
16
17
Original file line number Diff line number Diff line change @@ -763,6 +763,8 @@ public function parse($string)
763
763
* Get a random MIME type
764
764
*
765
765
* @example 'video/avi'
766
+ *
767
+ * @return string
766
768
*/
767
769
public function mimeType ()
768
770
{
@@ -773,6 +775,8 @@ public function mimeType()
773
775
* Get a random file extension (without a dot)
774
776
*
775
777
* @example avi
778
+ *
779
+ * @return string
776
780
*/
777
781
public function fileExtension ()
778
782
{
@@ -781,6 +785,8 @@ public function fileExtension()
781
785
782
786
/**
783
787
* Get a full path to a new real file on the system.
788
+ *
789
+ * @return string
784
790
*/
785
791
public function filePath ()
786
792
{
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ public static function imageUrl(
55
55
trigger_deprecation (
56
56
'fakerphp/faker ' ,
57
57
'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__ ,
59
60
);
60
61
61
62
// Validate image format
@@ -119,7 +120,8 @@ public static function image(
119
120
trigger_deprecation (
120
121
'fakerphp/faker ' ,
121
122
'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__ ,
123
125
);
124
126
125
127
$ dir = null === $ dir ? sys_get_temp_dir () : $ dir ; // GNU/Linux / OS X / Windows compatible
@@ -173,7 +175,8 @@ public static function getFormats(): array
173
175
trigger_deprecation (
174
176
'fakerphp/faker ' ,
175
177
'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__ ,
177
180
);
178
181
179
182
return array_keys (static ::getFormatConstants ());
@@ -184,7 +187,8 @@ public static function getFormatConstants(): array
184
187
trigger_deprecation (
185
188
'fakerphp/faker ' ,
186
189
'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__ ,
188
192
);
189
193
190
194
return [
You can’t perform that action at this time.
0 commit comments