File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55* ` TermList ` now throws ` InvalidArgumentException ` when given non-iterable rather than failing silently
66* ` SiteLinkList ` now throws ` InvalidArgumentException ` when given non-iterable rather than failing silently
7+ * Slightly optimized ` EntityId::isForeign() ` by using ` $this->repositoryName ` instead of ` $this->serialization `
78
89## Version 9.1.0 (2019-01-24)
910
Original file line number Diff line number Diff line change @@ -164,15 +164,14 @@ public function getLocalPart() {
164164 }
165165
166166 /**
167- * Returns true iff EntityId::getRepoName returns a non-empty string.
167+ * Returns true iff EntityId::getRepositoryName returns a non-empty string.
168168 *
169169 * @since 6.2
170170 *
171171 * @return bool
172172 */
173173 public function isForeign () {
174- // not actually using EntityId::getRepoName for performance reasons
175- return strpos ( $ this ->serialization , ': ' ) > 0 ;
174+ return $ this ->repositoryName !== '' ;
176175 }
177176
178177 /**
You can’t perform that action at this time.
0 commit comments