We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 874cb0f commit f58d35eCopy full SHA for f58d35e
tests/Type/UserErrorsType/BasicTest.php
@@ -46,6 +46,7 @@ public function testValidationWithNoErrorCodes()
46
{
47
$type = UserErrorsType::create([
48
'validate' => static function ($value) {
49
+ return $value ? 0 : 1;
50
},
51
'type' => Type::id(),
52
], ['upsertSku']);
tests/Type/ValidatedFieldDefinition/InputObjectValidationTest.php
@@ -101,7 +101,7 @@ protected function setUp()
101
'type' => $this->bookAttributesInputType,
102
'errorCodes' => ['titleOrIdRequired'],
103
'validate' => static function (?array $bookAttributes) {
104
- if ($bookAttributes === null) {
+ if (!$bookAttributes) {
105
return 0;
106
}
107
0 commit comments