File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ public function isText(): bool
295
295
*
296
296
* @return bool True if the file is of the specified type.
297
297
*/
298
- public function isType (string $ type ): bool
298
+ public function isMimeType (string $ type ): bool
299
299
{
300
300
return $ this ->mimeType ->isType ($ type );
301
301
}
Original file line number Diff line number Diff line change @@ -207,10 +207,10 @@ public function testMimeTypeMethods(): void
207
207
$ this ->assertFalse ($ file ->isImage ());
208
208
$ this ->assertFalse ($ file ->isAudio ());
209
209
$ this ->assertFalse ($ file ->isText ());
210
- $ this ->assertTrue ($ file ->isType ('video ' ));
211
- $ this ->assertFalse ($ file ->isType ('image ' ));
212
- $ this ->assertFalse ($ file ->isType ('audio ' ));
213
- $ this ->assertFalse ($ file ->isType ('text ' ));
210
+ $ this ->assertTrue ($ file ->isMimeType ('video ' ));
211
+ $ this ->assertFalse ($ file ->isMimeType ('image ' ));
212
+ $ this ->assertFalse ($ file ->isMimeType ('audio ' ));
213
+ $ this ->assertFalse ($ file ->isMimeType ('text ' ));
214
214
}
215
215
216
216
/**
You can’t perform that action at this time.
0 commit comments