Skip to content

Commit 30271c9

Browse files
authored
fix some regressions introduced in #413 (#416)
1 parent a4d4227 commit 30271c9

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/DomCrawler/Field/FormFieldTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getValue()
5454

5555
public function isDisabled(): bool
5656
{
57-
return null === $this->element->getAttribute('disabled') ? false : true;
57+
return null !== $this->element->getAttribute('disabled');
5858
}
5959

6060
private function setTextValue($value): void

tests/DummyKernel.php

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,20 @@
1616
use Symfony\Component\Config\Loader\LoaderInterface;
1717
use Symfony\Component\DependencyInjection\ContainerInterface;
1818
use Symfony\Component\HttpFoundation\Request;
19+
use Symfony\Component\HttpFoundation\Response;
20+
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
1921
use Symfony\Component\HttpKernel\KernelInterface;
2022

2123
/**
2224
* @author Kévin Dunglas <[email protected]>
2325
*/
2426
class DummyKernel implements KernelInterface
2527
{
26-
public function serialize(): void
28+
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true): Response
2729
{
2830
}
2931

30-
public function unserialize($serialized): void
31-
{
32-
}
33-
34-
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true)
35-
{
36-
}
37-
38-
public function registerBundles()
32+
public function registerBundles(): iterable
3933
{
4034
}
4135

@@ -55,7 +49,7 @@ public function getBundles(): array
5549
{
5650
}
5751

58-
public function getBundle($name, $first = true): \Symfony\Component\HttpKernel\Bundle\BundleInterface
52+
public function getBundle($name, $first = true): BundleInterface
5953
{
6054
}
6155

0 commit comments

Comments
 (0)