rectorphp / rector-book-feedback

[BOOK] Repository for feedback from readers of Rector book, to improve it continuously
https://leanpub.com/rector-the-power-of-automated-refactoring
15 stars 2 forks source link

Code Improvement page 95 #53

Closed neveldo closed 2 years ago

neveldo commented 2 years ago

Code Improvement

I think code on page 95 could be improved:

Why?

Because there is a missing single quote after “monday”.

I propose this change

-$instance->modify('next monday)
+$instance->modify('next monday')

Thanks!