Skip to content

Commit ee6d3a7

Browse files
committed
Merge pull request #13 from saracubillas/patch-1
Update 1.3. Type hinting.php
2 parents bf099ed + e6de824 commit ee6d3a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

02 - Editing/01 - Completion/1.3. Type hinting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// $person->
2020

2121
// 2. We can solve this!
22-
// Find the $people = array(); and add a PHPDoc comment: /** @var Person[] */ - this tells PhpStorm the array contains Person objects.
22+
// Find the $people = array(); and add a PHPDoc comment: /** @var $people Person[] */ - this tells PhpStorm the array contains Person objects.
2323
//
2424
// Type $person-> and see for yourself that we now have autocompletion.
2525

@@ -36,4 +36,4 @@
3636
// Note PhpStorm also supports @method, @type, @property, @deprecated, @global, @name, @param, @static, @since, @link, @mixin, ...
3737

3838
// $person->A
39-
}
39+
}

0 commit comments

Comments
 (0)