clarkwinkelmann lol now you explained it well, it got into my head.
i checked vendor/flarum/core/views and i am missing error folder.
But why when i changed from 8.0 to php 8.1 it gives error
PHP Deprecated: Return type of Flarum\Foundation\Config::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/vendor/flarum/core/src/Foundation/Config.php on line 61
[21-Feb-2022 02:22:09 UTC] PHP Deprecated: Return type of Flarum\Foundation\Config::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/vendor/flarum/core/src/Foundation/Config.php on line 56
[21-Feb-2022 02:22:09 UTC] PHP Deprecated: Return type of Flarum\Foundation\Config::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/vendor/flarum/core/src/Foundation/Config.php on line 66
[21-Feb-2022 02:22:09 UTC] PHP Deprecated: Return type of Flarum\Foundation\Config::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/vendor/flarum/core/src/Foundation/Config.php on line 71
[21-Feb-2022 02:22:09 UTC] PHP Deprecated: Return type of Tobscure\JsonApi\Document::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/vendor/tobscure/json-api/src/Document.php on line 222
[21-Feb-2022 02:22:09 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /public_html/vendor/flarum/core/src/Locale/Translator.php on line 65
[21-Feb-2022 02:22:20 UTC] PHP Deprecated: Return type of Flarum\Foundation\Config::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/vendor/flarum/core/src/Foundation/Config.php on line 61
[21-Feb-2022 02:22:20 UTC] PHP Deprecated: Return type of Flarum\Foundation\Config::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/vendor/flarum/core/src/Foundation/Config.php on line 56
[21-Feb-2022 02:22:20 UTC] PHP Deprecated: Return type of Flarum\Foundation\Config::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /public_html/vendor/flarum/core/src/Foundation/Config.php on line 66
And display error is off