reneoelke / php52to53 Goto Github PK
View Code? Open in Web Editor NEWPHP_CodeSniffer standard for compatibility checking of PHP 5.2 to 5.3 migrations.
Home Page: http://foobugs.com
PHP_CodeSniffer standard for compatibility checking of PHP 5.2 to 5.3 migrations.
Home Page: http://foobugs.com
Sniffs are named inconsistently within foobugs-standards repositories and across them.
Especially Deprecated, Generic and PHP namespaces, which are not used for php52to53.
I would opt for them to be applied as unit tests are added to make the user experience consistent across the standards.
Furthermore it might help grouping sniffs of future standards.
I would recommend to replace some sniffs with proper extension of existing CodeSniffer sniffs like Generic.PHP.DeprecatedFunction (there are not that many, but there are not none).
Call time pass by reference meckert auch bei Zuweisungen mit Referenz. Tatsächlich ist aber nur das übergeben von Variablen an Funktionen per Referenz nicht mehr erlaubt.
$fixture =& new CakeTestFixture($this->db);
Der Sniff für die Keywords die nicht mehr erlaubt sind prüft noch nicht ob bei dem gefundenen Stück Code eine Variable benutzt wird. In dem folgenden Fall ist use
erlaubt:
function Services_JSON($use = 0)
{
$this->use = $use;
}
Es fehlt jegliche Dokumentation, was abgedeckt wurde und was noch fehlt.
Wäre gut (idealerweise auch in Englisch) eine Liste zu haben.
Dient folgenden Zwecken:
Kann das Projekt 'öffentlich' gemacht werden?
Inklusive composer.json (siehe #6) könnte es gleich auf packagist.org registriert werden.
Lohnt es sich für das Projekt UnitTests zu erstellen?
Wenn Ihr eine Liste aller Sniffs (Blacklist) hättet, wäre es ziemlich übersichtlich. Ohne ist es etwas müßig, aber wohl lehrreich genug :-)
Das INI-Feld 'zend.ze1_compability_mode' wurde mit 5.3 entfernt.
Sollte für Features, die in PHP 5.3 zwar vorhanden sind (E_DEPRECATED Notiz verursachen) eine Warnung ausgegeben werden (Log-Level INFO)?
Der Test für die Konstanten-Prüfung für z. Bsp. E_DEPRECATED
prüft nicht auf eine definierung einer Konstanten sondern auf die Verwendung. E_DEPRECATED
ist ja eine neue Konstante.
In dem folgenden Code ist namespace
erlaubt.
class XmlNode extends Object {
/**
* Name of node
*
* @var string
* @access public
*/
var $name = null;
/**
* Node namespace
*
* @var string
* @access public
*/
var $namespace = null;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.