dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More is_a() -> instanceof
[lhc/web/wiklou.git]
/
maintenance
/
tests
/
phpunit
/
includes
/
api
/
ApiUploadTest.php
diff --git
a/maintenance/tests/phpunit/includes/api/ApiUploadTest.php
b/maintenance/tests/phpunit/includes/api/ApiUploadTest.php
index
a5ccf38
..
2ab91f9
100644
(file)
--- a/
maintenance/tests/phpunit/includes/api/ApiUploadTest.php
+++ b/
maintenance/tests/phpunit/includes/api/ApiUploadTest.php
@@
-596,7
+596,7
@@
class ApiUploadTest extends ApiTestCase {
// see if it now doesn't exist; reload
$title = Title::newFromText( $fileName, NS_FILE );
}
- return ! ( $title &&
is_a( $title, 'Title' )
&& $title->exists() );
+ return ! ( $title &&
$title instanceof Title
&& $title->exists() );
}
/**