@@ -43,19 +43,19 @@ Start by creating the class and these methods. Next, you'll learn how to fill ea
4343
4444 class PHPDocTypeGuesser implements FormTypeGuesserInterface
4545 {
46- public function guessType($class, $property)
46+ public function guessType(string $class, string $property)
4747 {
4848 }
4949
50- public function guessRequired($class, $property)
50+ public function guessRequired(string $class, string $property)
5151 {
5252 }
5353
54- public function guessMaxLength($class, $property)
54+ public function guessMaxLength(string $class, string $property)
5555 {
5656 }
5757
58- public function guessPattern($class, $property)
58+ public function guessPattern(string $class, string $property)
5959 {
6060 }
6161 }
@@ -94,7 +94,7 @@ With this knowledge, you can implement the ``guessType()`` method of the
9494
9595 class PHPDocTypeGuesser implements FormTypeGuesserInterface
9696 {
97- public function guessType($class, $property)
97+ public function guessType(string $class, string $property)
9898 {
9999 $annotations = $this->readPhpDocAnnotations($class, $property);
100100
@@ -129,7 +129,7 @@ With this knowledge, you can implement the ``guessType()`` method of the
129129 }
130130 }
131131
132- protected function readPhpDocAnnotations($class, $property)
132+ protected function readPhpDocAnnotations(string $class, string $property)
133133 {
134134 $reflectionProperty = new \ReflectionProperty($class, $property);
135135 $phpdoc = $reflectionProperty->getDocComment();
0 commit comments