File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace React \Filesystem \Eio ;
44
5+ use DateTimeImmutable ;
56use React \EventLoop \LoopInterface ;
67use React \Filesystem \AdapterInterface ;
78use React \Filesystem \CallInvokerInterface ;
@@ -144,9 +145,9 @@ public function setReadDirInvoker(CallInvokerInterface $invoker)
144145 public function stat ($ filename )
145146 {
146147 return $ this ->invoker ->invokeCall ('eio_lstat ' , [$ filename ])->then (function ($ stat ) {
147- $ stat ['atime ' ] = new \ DateTime ('@ ' .$ stat ['atime ' ]);
148- $ stat ['mtime ' ] = new \ DateTime ('@ ' .$ stat ['mtime ' ]);
149- $ stat ['ctime ' ] = new \ DateTime ('@ ' .$ stat ['ctime ' ]);
148+ $ stat ['atime ' ] = new DateTimeImmutable ('@ ' .$ stat ['atime ' ]);
149+ $ stat ['mtime ' ] = new DateTimeImmutable ('@ ' .$ stat ['mtime ' ]);
150+ $ stat ['ctime ' ] = new DateTimeImmutable ('@ ' .$ stat ['ctime ' ]);
150151 return \React \Promise \resolve ($ stat );
151152 });
152153 }
You can’t perform that action at this time.
0 commit comments