Interface
ࢀߟ
IUUQTHJUIVCDPNTMJNQIQ4MJNCMPC4MJN
3FTQPOTF&NJUUFSQIQ
StreamInterface
bool
int: 0
(Content-Length )
int
int
string
bool
Slide 29
Slide 29 text
ܕͱͷ͖߹͍ํ
( )
Interface
strict_types=1
private
public
Slide 30
Slide 30 text
:
Slide 31
Slide 31 text
ΨϯΨϯܕએݴΛ͢Δ͜ͱͷऑͱ͔
PHPDoc
PHP
PHP
Slide 32
Slide 32 text
੩తղੳπʔϧΛ͓͏ / PHPStan
https://phpstan.org/
PHPStan scans your whole codebase and looks for both
obvious & tricky bugs. Even in those rarely executed if
statements that certainly aren't covered by tests.
( )
Slide 33
Slide 33 text
੩తղੳπʔϧΛ͓͏ / Psalm
https://psalm.dev/
Psalm is a static analysis tool that attempts to dig into
your program and
fi
nd as many type-related bugs as
possible.
PHPStan
ͬͱڧྗͳ׆༻ʹ͚ͯ
PHPStan
https://phpstan.org/writing-php-code/phpdoc-types
https://phpstan.org/con
fi
g-reference
https://phpstan.org/user-guide/extension-library
OSS
Slide 56
Slide 56 text
ͱͯࢀߟʹͳΔࢿྉͨͪ
PHPStan #phpcon_okinawa pixivFANBOX
https://tadsan.fanbox.cc/posts/4348669
#phpcon_okinawa
pixivFANBOX
https://tadsan.fanbox.cc/posts/2558149
level=0 PHPStan(Larastan) - Shin x Blog
https://blog.shin1x1.com/entry/getting-stated-with-phpstan
CI / Great static analysis with CI -
Speaker Deck
https://speakerdeck.com/oogfranz/great-static-analysis-with-ci