Commit e2278da
Implementing type safe method call to DateTime::setTimestamp()
When loading serialized snapshot contents, this Transformer passes string values to the \DateTime::setTimestamp()" method, resulting in an uncaught FatalThrowableError:
Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Type error: DateTime::setTimestamp() expects parameter 1 to be integer, string given" at Transformer.php line 165
Example call (taken from my Symfony Exception page):
DateTime->setTimestamp('1510846884')
in vendor/sonata-project/page-bundle/src/Entity/Transformer.php (line 165)1 parent 9ab4729 commit e2278da
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments