Skip to content

Commit

Permalink
Merge pull request #36 from ruudboon/4.0.3
Browse files Browse the repository at this point in the history
Upgraded stubs
  • Loading branch information
ruudboon authored Jan 25, 2020
2 parents d7b858d + 91c56d2 commit 6835e8f
Show file tree
Hide file tree
Showing 27 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/Phalcon/Annotations/AnnotationsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(array $services = array())
* ]
* ]
*
* Factory to create an instace from a Config object
* Factory to create an instance from a Config object
* @return mixed
*/
public function load($config)
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Assets/AssetInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Phalcon\Assets;

/**
* Interface for custom Phalcon\Assets reources
* Interface for custom Phalcon\Assets resources
*/
interface AssetInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Cache/CacheFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(AdapterFactory $factory)
}

/**
* Factory to create an instace from a Config object
* Factory to create an instance from a Config object
*
* @param array|\Phalcon\Config $config = [
* 'adapter' => 'apcu',
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Db/Adapter/PdoFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(array $services = array())
}

/**
* Factory to create an instace from a Config object
* Factory to create an instance from a Config object
*
* @param array|\Phalcon\Config $config = [
* 'adapter' => 'mysql',
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Db/Result/Pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function dataSeek(int $number)
/**
* Allows to execute the statement again. Some database systems don't
* support scrollable cursors. So, as cursors are forward only, we need to
* execute the cursor again to fetch rows from the begining
* execute the cursor again to fetch rows from the beginning
*
* @return bool
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Phalcon/Db/ResultInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ interface ResultInterface
public function dataSeek(int $number);

/**
* Allows to executes the statement again. Some database systems don't
* Allows to execute the statement again. Some database systems don't
* support scrollable cursors. So, as cursors are forward only, we need to
* execute the cursor again to fetch rows from the begining
* execute the cursor again to fetch rows from the beginning
*
* @return bool
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Phalcon/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ public function listenLowSeverity(): Debug
/**
* Handles uncaught exceptions
*
* @param \Exception $exception
* @param \Throwable $exception
* @return bool
*/
public function onUncaughtException(\Exception $exception): bool
public function onUncaughtException(\Throwable $exception): bool
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Filter/FilterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FilterFactory
{

/**
* Returns a Locator object with all the helpers defined in anonynous
* Returns a Locator object with all the helpers defined in anonymous
* functions
*
* @return FilterInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Filter/Sanitize/UpperWords.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Phalcon\Filter\Sanitize\UpperWords
*
* Sanitizes a value to uppercase teh first character of each word
* Sanitizes a value to uppercase the first character of each word
*/
class UpperWords
{
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Helper/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ final public static function validateAll(array $collection, $method = null): boo

/**
* Returns true if the provided function returns true for at least one
* element fo the collection, false otherwise.
* element of the collection, false otherwise.
*
* @param array $collection
* @param callable $method
Expand Down
4 changes: 2 additions & 2 deletions src/Phalcon/Helper/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ final public static function concat(): string
}

/**
* Retuns number of vowels in provided string. Uses a regular expression
* Returns number of vowels in provided string. Uses a regular expression
* to count the number of vowels (A, E, I, O, U) in a string.
*
* @param string $string
Expand All @@ -96,7 +96,7 @@ final public static function countVowels(string $text): int
}

/**
* Decapitalizes the first letter of the sring and then adds it with rest
* Decapitalizes the first letter of the string and then adds it with rest
* of the string. Omit the upperRest parameter to keep the rest of the
* string intact, or set it to true to convert to uppercase.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Image/ImageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(array $services = array())
}

/**
* Factory to create an instace from a Config object
* Factory to create an instance from a Config object
*
* @param array|\Phalcon\Config $config = [
* 'adapter' => 'gd',
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Logger/LoggerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(AdapterFactory $factory)
}

/**
* Factory to create an instace from a Config object
* Factory to create an instance from a Config object
*
* @param array|\Phalcon\Config $config = [
* 'name' => 'messages',
Expand Down
1 change: 0 additions & 1 deletion src/Phalcon/Mvc/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Phalcon\Mvc;

use Phalcon\Application\AbstractApplication;
use Phalcon\Mvc\ModuleDefinitionInterface;

/**
* Phalcon\Mvc\Application
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Mvc/Micro.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public function setModelBinder(\Phalcon\Mvc\Model\BinderInterface $modelBinder,
}

/**
* Appends a custom 'reponse' handler to be called insted of the default
* Appends a custom 'response' handler to be called instead of the default
* response handler
*
* @param callable $handler
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Mvc/Model/RelationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function isReusable(): bool;
public function isThrough(): bool;

/**
* Sets the intermediate model dat for has--through relations
* Sets the intermediate model data for has--through relations
*
* @param string|array $intermediateFields
* @param string|array $intermediateReferencedFields
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Paginator/PaginatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(array $services = array())
}

/**
* Factory to create an instace from a Config object
* Factory to create an instance from a Config object
*
* ```php
* use Phalcon\Paginator\PaginatorFactory;
Expand Down
3 changes: 2 additions & 1 deletion src/Phalcon/Storage/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public function getAdapter()
}

/**
* Stores data in the adapter
* Gets the keys from the adapter. Accepts an optional prefix which will
* filter the keys returned
*
* @return array
* @throws Exception
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public static function renderAttributes(string $code, array $attributes): string
}

/**
* Renders the title with title tags. The title is automaticall escaped
* Renders the title with title tags. The title is automatically escaped
*
* @param bool $prepend
* @param bool $append
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Translate/Adapter/NativeArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function exists(string $index): bool
}

/**
* Whenever a key is not found this medhod will be called
* Whenever a key is not found this method will be called
*
* @param string $index
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Translate/TranslateFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(InterpolatorFactory $interpolator, array $services =
}

/**
* Factory to create an instace from a Config object
* Factory to create an instance from a Config object
*
* @param array|\Phalcon\Config = [
* 'adapter' => 'ini,
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Validation/Validator/File/Resolution/Equal.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Phalcon\Validation\Validator\File\AbstractFile;

/**
* Checks if a file has the rigth resolution
* Checks if a file has the right resolution
*
* ```php
* use Phalcon\Validation;
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Validation/Validator/File/Resolution/Max.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Phalcon\Validation\Validator\File\AbstractFile;

/**
* Checks if a file has the rigth resolution
* Checks if a file has the right resolution
*
* ```php
* use Phalcon\Validation;
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Validation/Validator/File/Resolution/Min.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Phalcon\Validation\Validator\File\AbstractFile;

/**
* Checks if a file has the rigth resolution
* Checks if a file has the right resolution
*
* ```php
* use Phalcon\Validation;
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Validation/Validator/File/Size/Equal.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* "anotherFile" => true,
* ],
* "message" => [
* "file" => "file does not have the rigth filesize",
* "file" => "file does not have the right filesize",
* "anotherFile" => "anotherFile wrong filesize (4MB)",
* ],
* ]
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Validation/Validator/StringLength.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Validates that a string has the specified maximum and minimum constraints
* The test is passed if for a string's length L, min<=L<=max, i.e. L must
* be at least min, and at most max.
* Since Phalcon v4.0 this valitor works like a container
* Since Phalcon v4.0 this validator works like a container
*
* ```php
* use Phalcon\Validation;
Expand Down
2 changes: 1 addition & 1 deletion src/Phalcon/Validation/ValidatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getTemplates(): array;
public function setTemplates(array $templates): ValidatorInterface;

/**
* Set a new temlate message
* Set a new template message
*
* @return ValidatorInterface
* @param string $template
Expand Down

0 comments on commit 6835e8f

Please sign in to comment.