Skip to content

Commit

Permalink
update since versions in core to make it major
Browse files Browse the repository at this point in the history
seems that new features are being introduced only in major releases so it doesn't makes sense to display redundant .0 patch version in 'since' tag and more over such major version will allow to create matching between language level and since version in phpstorm and create appropriate inspection like it's done for 'deprecated' inspection
  • Loading branch information
isfedorov committed Oct 31, 2019
1 parent 0380241 commit 79f9860
Show file tree
Hide file tree
Showing 76 changed files with 1,209 additions and 1,206 deletions.
22 changes: 11 additions & 11 deletions Core/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function get_class ($object = null) {}
* the "Late Static Binding" class name
* @link https://php.net/manual/en/function.get-called-class.php
* @return string the class name. Returns false if called from outside a class.
* @since 5.3.0
* @since 5.3
*/
function get_called_class () {}

Expand Down Expand Up @@ -396,7 +396,7 @@ function method_exists ($object, $method_name) {}
* </p>
* @return bool true if the property exists, false if it doesn't exist or
* null in case of an error.
* @since 5.1.0
* @since 5.1
*/
function property_exists ($class, $property) {}

Expand All @@ -406,7 +406,7 @@ function property_exists ($class, $property) {}
* @param bool $autoload [optional] Whether to autoload if not already loaded.
* @return bool Returns TRUE if trait exists, FALSE if not, NULL in case of an error.
* @link https://secure.php.net/manual/en/function.trait-exists.php
* @since 5.4.0
* @since 5.4
*/
function trait_exists($traitname, $autoload ) {}

Expand Down Expand Up @@ -465,7 +465,7 @@ function function_exists ($function_name) {}
* @param string $alias The alias name for the class.
* @param bool $autoload [optional] Whether to autoload if the original class is not found.
* @return bool true on success or false on failure.
* @since 5.3.0
* @since 5.3
*/
function class_alias ($original, $alias, $autoload = TRUE) {}

Expand Down Expand Up @@ -711,7 +711,7 @@ function get_declared_interfaces () {}
* @return array with names of all declared traits in values. Returns NULL in case of a failure.
* @link https://secure.php.net/manual/en/function.get-declared-traits.php
* @see class_uses()
* @since 5.4.0
* @since 5.4
*/
function get_declared_traits() {}

Expand Down Expand Up @@ -891,7 +891,7 @@ function get_extension_funcs ($module_name) {}
* </pre>
* </p>
* @return array
* @since 4.1.0
* @since 4.1
* @since 5.0
*/
function get_defined_constants ($categorize = false) {}
Expand Down Expand Up @@ -991,7 +991,7 @@ function get_defined_constants ($categorize = false) {}
* </td>
* </tr>
* </table>
* @since 4.3.0
* @since 4.3
* @since 5.0
*/
function debug_backtrace ($options = DEBUG_BACKTRACE_PROVIDE_OBJECT, $limit = 0) {}
Expand Down Expand Up @@ -1025,31 +1025,31 @@ function debug_print_backtrace ($options = 0, $limit = 0) {}
* Forces collection of any existing garbage cycles
* @link https://php.net/manual/en/function.gc-collect-cycles.php
* @return int number of collected cycles.
* @since 5.3.0
* @since 5.3
*/
function gc_collect_cycles () {}

/**
* Returns status of the circular reference collector
* @link https://php.net/manual/en/function.gc-enabled.php
* @return bool true if the garbage collector is enabled, false otherwise.
* @since 5.3.0
* @since 5.3
*/
function gc_enabled () {}

/**
* Activates the circular reference collector
* @link https://php.net/manual/en/function.gc-enable.php
* @return void
* @since 5.3.0
* @since 5.3
*/
function gc_enable () {}

/**
* Deactivates the circular reference collector
* @link https://php.net/manual/en/function.gc-disable.php
* @return void
* @since 5.3.0
* @since 5.3
*/
function gc_disable () {}

Expand Down
50 changes: 25 additions & 25 deletions Core/Core_c.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ interface IteratorAggregate extends Traversable {
* @return Traversable An instance of an object implementing <b>Iterator</b> or
* <b>Traversable</b>
* @throws Exception on failure.
* @since 5.0.0
* @since 5.0
*/
public function getIterator();
}
Expand All @@ -52,23 +52,23 @@ interface Iterator extends Traversable {
* Return the current element
* @link https://php.net/manual/en/iterator.current.php
* @return mixed Can return any type.
* @since 5.0.0
* @since 5.0
*/
public function current();

/**
* Move forward to next element
* @link https://php.net/manual/en/iterator.next.php
* @return void Any returned value is ignored.
* @since 5.0.0
* @since 5.0
*/
public function next();

/**
* Return the key of the current element
* @link https://php.net/manual/en/iterator.key.php
* @return string|float|int|bool|null scalar on success, or null on failure.
* @since 5.0.0
* @since 5.0
*/
public function key();

Expand All @@ -77,15 +77,15 @@ public function key();
* @link https://php.net/manual/en/iterator.valid.php
* @return bool The return value will be casted to boolean and then evaluated.
* Returns true on success or false on failure.
* @since 5.0.0
* @since 5.0
*/
public function valid();

/**
* Rewind the Iterator to the first element
* @link https://php.net/manual/en/iterator.rewind.php
* @return void Any returned value is ignored.
* @since 5.0.0
* @since 5.0
*/
public function rewind();
}
Expand All @@ -106,7 +106,7 @@ interface ArrayAccess {
* </p>
* <p>
* The return value will be casted to boolean if non-boolean was returned.
* @since 5.0.0
* @since 5.0
*/
public function offsetExists($offset);

Expand All @@ -117,7 +117,7 @@ public function offsetExists($offset);
* The offset to retrieve.
* </p>
* @return mixed Can return all value types.
* @since 5.0.0
* @since 5.0
*/
public function offsetGet($offset);

Expand All @@ -131,7 +131,7 @@ public function offsetGet($offset);
* The value to set.
* </p>
* @return void
* @since 5.0.0
* @since 5.0
*/
public function offsetSet($offset, $value);

Expand All @@ -142,7 +142,7 @@ public function offsetSet($offset, $value);
* The offset to unset.
* </p>
* @return void
* @since 5.0.0
* @since 5.0
*/
public function offsetUnset($offset);
}
Expand All @@ -157,7 +157,7 @@ interface Serializable {
* String representation of object
* @link https://php.net/manual/en/serializable.serialize.php
* @return string the string representation of the object or null
* @since 5.1.0
* @since 5.1
*/
public function serialize();

Expand All @@ -168,7 +168,7 @@ public function serialize();
* The string representation of the object.
* </p>
* @return void
* @since 5.1.0
* @since 5.1
*/
public function unserialize($serialized);
}
Expand Down Expand Up @@ -272,7 +272,7 @@ class Exception implements Throwable {
* Tries to clone the Exception, which results in Fatal error.
* @link https://php.net/manual/en/exception.clone.php
* @return void
* @since 5.1.0
* @since 5.1
*/
final private function __clone() { }

Expand All @@ -282,15 +282,15 @@ final private function __clone() { }
* @param string $message [optional] The Exception message to throw.
* @param int $code [optional] The Exception code.
* @param Throwable $previous [optional] The previous throwable used for the exception chaining.
* @since 5.1.0
* @since 5.1
*/
public function __construct($message = "", $code = 0, Throwable $previous = null) { }

/**
* Gets the Exception message
* @link https://php.net/manual/en/exception.getmessage.php
* @return string the Exception message as a string.
* @since 5.1.0
* @since 5.1
*/
final public function getMessage() { }

Expand All @@ -301,31 +301,31 @@ final public function getMessage() { }
* <b>Exception</b> but possibly as other type in
* <b>Exception</b> descendants (for example as
* string in <b>PDOException</b>).
* @since 5.1.0
* @since 5.1
*/
final public function getCode() { }

/**
* Gets the file in which the exception occurred
* @link https://php.net/manual/en/exception.getfile.php
* @return string the filename in which the exception was created.
* @since 5.1.0
* @since 5.1
*/
final public function getFile() { }

/**
* Gets the line in which the exception occurred
* @link https://php.net/manual/en/exception.getline.php
* @return int the line number where the exception was created.
* @since 5.1.0
* @since 5.1
*/
final public function getLine() { }

/**
* Gets the stack trace
* @link https://php.net/manual/en/exception.gettrace.php
* @return array the Exception stack trace as an array.
* @since 5.1.0
* @since 5.1
*/
final public function getTrace() { }

Expand All @@ -334,23 +334,23 @@ final public function getTrace() { }
* @link https://php.net/manual/en/exception.getprevious.php
* @return Exception the previous <b>Exception</b> if available
* or null otherwise.
* @since 5.3.0
* @since 5.3
*/
final public function getPrevious() { }

/**
* Gets the stack trace as a string
* @link https://php.net/manual/en/exception.gettraceasstring.php
* @return string the Exception stack trace as a string.
* @since 5.1.0
* @since 5.1
*/
final public function getTraceAsString() { }

/**
* String representation of the exception
* @link https://php.net/manual/en/exception.tostring.php
* @return string the string representation of the exception.
* @since 5.1.0
* @since 5.1
*/
public function __toString() { }

Expand Down Expand Up @@ -539,15 +539,15 @@ class ErrorException extends Exception {
* @param string $filename [optional] The filename where the exception is thrown.
* @param int $lineno [optional] The line number where the exception is thrown.
* @param Exception $previous [optional] The previous exception used for the exception chaining.
* @since 5.1.0
* @since 5.1
*/
public function __construct($message = "", $code = 0, $severity = 1, $filename = __FILE__, $lineno = __LINE__, $previous = null) { }

/**
* Gets the exception severity
* @link https://php.net/manual/en/errorexception.getseverity.php
* @return int the severity level of the exception.
* @since 5.1.0
* @since 5.1
*/
final public function getSeverity() { }
}
Expand Down Expand Up @@ -636,7 +636,7 @@ interface Countable {
* </p>
* <p>
* The return value is cast to an integer.
* @since 5.1.0
* @since 5.1
*/
public function count();
}
Expand Down
Loading

0 comments on commit 79f9860

Please sign in to comment.