just stepping in for a little typo in the controller example : you wrote
public fucntion getPostsFromDatabase(): PostsFromDatabase
public function getPostsFromDatabase(): PostsFromDatabase
(and there is the same mistake for the setPostsFromDatabase line.
Thank you very much for the posts, they are extremely interesting.
Hei Jonathan, thank you very much for pointing out this typo :D I replace fucntion with function.
Unfortunately, this is typo happen to me so often :( I have to find a way to stop making it. My IDE (PhpStorm) helps me a lot, but when I type without IDE, it is hard to spot misspelling.
Thank you very much for the positive feedback!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.