Skip to content

Commit 341ed9a

Browse files
committed
fixed bugs reported by PHPStan
1 parent 8516390 commit 341ed9a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Bridges/FormsLatte/FormMacros.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* - {inputError name}
2626
* - {formContainer name} ... {/formContainer}
2727
*/
28-
class FormMacros extends MacroSet
28+
final class FormMacros extends MacroSet
2929
{
3030
public static function install(Latte\Compiler $compiler): void
3131
{

src/Forms/Form.php

+1
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ public function __toString(): string
623623
throw $e;
624624
}
625625
trigger_error('Exception in ' . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR);
626+
return '';
626627
}
627628
}
628629

0 commit comments

Comments
 (0)