Skip to content

Commit f463731

Browse files
committed
Avoid some log spam.
1 parent 876bb84 commit f463731

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/StreamWrapper/Foxml.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,18 @@ public static function getType() {
287287
*/
288288
public function realpath() {
289289
// XXX: Avoiding spamming via trigger_error() here, as we expect this to be
290-
// called from Drupal.
290+
// called legitimately, such as from:
291+
// - https://git.drupalcode.org/project/imagemagick/-/blob/218b8bb59225232eb502862c202a7a3849cf0e6e/src/EventSubscriber/ImagemagickEventSubscriber.php#L136
291292
return FALSE;
292293
}
293294

294295
/**
295296
* {@inheritDoc}
296297
*/
297298
public function dirname($uri = NULL) {
298-
trigger_error(__FUNCTION__ . '() not supported for foxml stream wrapper.', E_USER_WARNING);
299+
// XXX: Avoiding spamming via trigger_error() here, as we expect this to be
300+
// called legitimately, such as from:
301+
// - https://github.com/discoverygarden/dgi_migrate/blob/a93b0ce642db6f0ecdde4d184a501c280fb9d2ed/src/Plugin/migrate/process/EnsureNonWritableTrait.php#L52-L56
299302
return FALSE;
300303
}
301304

0 commit comments

Comments
 (0)