@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * Get the attributes that should be handled as carbonated timestamps. |
| 26 | 26 | * |
| 27 | - * @return array |
|
| 27 | + * @return string[] |
|
| 28 | 28 | */ |
| 29 | 29 | public function carbonatedTimestamps() |
| 30 | 30 | { |
@@ -497,6 +497,10 @@ discard block |
||
| 497 | 497 | $this->carbonInstances = $carbonInstances; |
| 498 | 498 | } |
| 499 | 499 | |
| 500 | + /** |
|
| 501 | + * @param Carbonated $instance |
|
| 502 | + * @param string $propertyName |
|
| 503 | + */ |
|
| 500 | 504 | private function ensureProperty($instance, $propertyName) |
| 501 | 505 | { |
| 502 | 506 | if (!property_exists($instance, $propertyName)) { |