@@ -70,46 +70,44 @@ public function assertMatchesFileHashSnapshot($filePath)
7070 $ this ->assertMatchesSnapshot ($ actual );
7171 }
7272
73- public function assertMatchesFileSnapshot ($ file )
73+ public function assertMatchesFileSnapshot ($ file ): void
7474 {
7575 $ this ->doFileSnapshotAssertion ($ file );
7676 }
7777
78- public function assertMatchesHtmlSnapshot ($ actual )
78+ public function assertMatchesHtmlSnapshot ($ actual ): void
7979 {
8080 $ this ->assertMatchesSnapshot ($ actual , new HtmlDriver ());
8181 }
8282
83- public function assertMatchesJsonSnapshot ($ actual )
83+ public function assertMatchesJsonSnapshot ($ actual ): void
8484 {
8585 $ this ->assertMatchesSnapshot ($ actual , new JsonDriver ());
8686 }
8787
88- public function assertMatchesObjectSnapshot ($ actual )
88+ public function assertMatchesObjectSnapshot ($ actual ): void
8989 {
9090 $ this ->assertMatchesSnapshot ($ actual , new ObjectDriver ());
9191 }
9292
93- public function assertMatchesTextSnapshot ($ actual )
93+ public function assertMatchesTextSnapshot ($ actual ): void
9494 {
9595 $ this ->assertMatchesSnapshot ($ actual , new TextDriver ());
9696 }
9797
98- public function assertMatchesXmlSnapshot ($ actual )
98+ public function assertMatchesXmlSnapshot ($ actual ): void
9999 {
100100 $ this ->assertMatchesSnapshot ($ actual , new XmlDriver ());
101101 }
102102
103- public function assertMatchesYamlSnapshot ($ actual )
103+ public function assertMatchesYamlSnapshot ($ actual ): void
104104 {
105105 $ this ->assertMatchesSnapshot ($ actual , new YamlDriver ());
106106 }
107107
108- /**
108+ /*
109109 * Determines the snapshot's id. By default, the test case's class and
110110 * method names are used.
111- *
112- * @return string
113111 */
114112 protected function getSnapshotId (): string
115113 {
@@ -118,12 +116,10 @@ protected function getSnapshotId(): string
118116 $ this ->snapshotIncrementor ;
119117 }
120118
121- /**
119+ /*
122120 * Determines the directory where snapshots are stored. By default a
123121 * `__snapshots__` directory is created at the same level as the test
124122 * class.
125- *
126- * @return string
127123 */
128124 protected function getSnapshotDirectory (): string
129125 {
@@ -132,12 +128,10 @@ protected function getSnapshotDirectory(): string
132128 '__snapshots__ ' ;
133129 }
134130
135- /**
131+ /*
136132 * Determines the directory where file snapshots are stored. By default a
137133 * `__snapshots__/files` directory is created at the same level as the
138134 * test class.
139- *
140- * @return string
141135 */
142136 protected function getFileSnapshotDirectory (): string
143137 {
@@ -146,14 +140,12 @@ protected function getFileSnapshotDirectory(): string
146140 'files ' ;
147141 }
148142
149- /**
143+ /*
150144 * Determines whether or not the snapshot should be updated instead of
151145 * matched.
152146 *
153147 * Override this method it you want to use a different flag or mechanism
154148 * than `-d --update-snapshots`.
155- *
156- * @return bool
157149 */
158150 protected function shouldUpdateSnapshots (): bool
159151 {
0 commit comments