1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-12 08:54:03 +02:00

Switch to short typehints

This commit is contained in:
Oliver Vogel
2024-01-30 19:44:37 +01:00
parent f6f0e24958
commit c16cc360aa
2 changed files with 10 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable
/**
* Count items in collection
*
* @return integer
* @return int
*/
public function count(): int
{
@@ -102,7 +102,7 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable
/**
* Return item at given position starting at 0
*
* @param integer $key
* @param int $key
* @return mixed
*/
public function getAtPosition(int $key = 0, $default = null): mixed

View File

@@ -24,7 +24,7 @@ class Point implements PointInterface
/**
* Sets X coordinate
*
* @param integer $x
* @param int $x
*/
public function setX(int $x): self
{
@@ -36,7 +36,7 @@ class Point implements PointInterface
/**
* Get X coordinate
*
* @return integer
* @return int
*/
public function x(): int
{
@@ -46,7 +46,7 @@ class Point implements PointInterface
/**
* Sets Y coordinate
*
* @param integer $y
* @param int $y
*/
public function setY(int $y): self
{
@@ -58,7 +58,7 @@ class Point implements PointInterface
/**
* Get Y coordinate
*
* @return integer
* @return int
*/
public function y(): int
{
@@ -68,7 +68,7 @@ class Point implements PointInterface
/**
* Move X coordinate
*
* @param integer $value
* @param int $value
*/
public function moveX(int $value): self
{
@@ -80,7 +80,7 @@ class Point implements PointInterface
/**
* Move Y coordinate
*
* @param integer $value
* @param int $value
*/
public function moveY(int $value): self
{
@@ -97,8 +97,8 @@ class Point implements PointInterface
/**
* Sets both X and Y coordinate
*
* @param integer $x
* @param integer $y
* @param int $x
* @param int $y
* @return Point
*/
public function setPosition(int $x, int $y): self