Page MenuHomeSealhub

tostring-exception.lint-test
No OneTemporary

Authored By
Unknown
Size
396 B
Referenced Files
None
Subscribers
None

tostring-exception.lint-test

<?php
class MyClass {
public function __toString() {
if (some_function()) {
throw new Exception('Oops');
}
return __CLASS__;
}
}
class MyOtherClass {
public function __toString() {
return 'Success';
}
}
interface SomeInterface {
public function __toString();
}
abstract class SomeAbstractClass {
abstract public function __toString();
}
~~~~~~~~~~
error:5:7

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 28, 03:05 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1221789
Default Alt Text
tostring-exception.lint-test (396 B)

Event Timeline