mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-21 14:47:24 +01:00
Improved code style of tests
This commit is contained in:
@@ -97,7 +97,7 @@ class PartListsController extends AbstractController
|
||||
$attrs['disabled'] = $disabled;
|
||||
|
||||
$parent = $form->getParent();
|
||||
if (!$parent instanceof \Symfony\Component\Form\FormInterface) {
|
||||
if (!$parent instanceof FormInterface) {
|
||||
throw new \RuntimeException('This function can only be used on form fields that are children of another form!');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user