mirror of
https://github.com/php-win-ext/php-sdk-binary-tools.git
synced 2026-03-24 17:12:12 +01:00
* Declare methods and instance variables in abstract classes While PHP doesn't require this, it is good style, and makes the code easier to reason about. * Declare class variable While `Config::getSdkNugetFeedUrl()` is not used from within the project, and probably just was some experimental stuff, the method is public, so we better keep it for now, but avoid reading an undeclared class variable. * Dodge from covariance warnings regarding Iterator for now * Don't pass unnecessary arguments These are retrieved from within the called functions, what *might* not be the best idea, but it's what we have for now. * Assert that $cb is actually a string before string conversion In practice, it's either "copy" or "rename". * Declare missing `Server::getPhp()` * Remove unreachable code * Ensure that `$crt` is defined From looking at the code, it seems so, but let's make sure before reading an undefined variable. * Config::getDepsPort() returns an int While that is changing the signature of a public method, it makes no sense to return a string, and later to convert to int again. * The abstract class TrainingCase is an Interfaces\TrainingCase There shouldn't be the need for even having an interface (an abstract class should be sufficient), but we keep the interface for now.
5.1 KiB
5.1 KiB