SONARPHP-295 Fix buggy implementation.