Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Sunday, June 10, 2012

Easy start with Jenkins for PHP developer

Lets look into the quick and minimal Jenkins setup for middle sized fast growing PHP project.
In order to easy follow this article you should at least:
  • have PEAR installed on server
  • use phpUnit for unit tests
  • build your app with Phing

Thursday, October 7, 2010

T_PAAMAYIM_NEKUDOTAYIM error message in PHP

I had a trivial task a while ago - to call static method when class name defined dynamically via variable. There were no any need to instantiate class instance to do a simple check if provided class is suitable to work with the current data. So I decided to create a static method that will process a simple check before class instance will be even instantiated.

foreach ($dirDataDrivers as $driverClass) {
    if (true === $driverClass::check($dirPath)) { // ERROR LINE!!!
        // do staff...
    }
}

But my code felt into error message: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM.