Skip to content

Commit

Permalink
bug fix issue #72
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jan 7, 2019
1 parent 48a8fd0 commit fdcab49
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ matrix:
env:
- COLLECT_COVERAGE=true
- IGNORE_PLATFORMS=false
- RUN_PHPSTAN=false
- RUN_PHPSTAN=true
- RUN_INFECTION=false
- VALIDATE_CODING_STYLE=false
- php: 7.2
Expand All @@ -30,7 +30,7 @@ matrix:
env:
- COLLECT_COVERAGE=true
- IGNORE_PLATFORMS=true
- RUN_PHPSTAN=false
- RUN_PHPSTAN=true
- RUN_INFECTION=false
- VALIDATE_CODING_STYLE=false
- php: nightly
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

All Notable changes to `Period` will be documented in this file

## Next - TBD
## 4.3.1 - 2019-01-07

### Added

- None

### Fixed

- None
- `Datepoint::createFromFormat` see issue [#72](https://github.com/thephpleague/period/issues/72)

### Deprecated

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"issues": "https://github.com/thephpleague/period/issues"
},
"require": {
"php" : ">=7.1.3"
"php" : "^7.1.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
Expand Down Expand Up @@ -50,9 +50,9 @@
"phpunit": "phpunit --coverage-text",
"infection": "infection -j$(nproc) --coverage=build --ignore-msi-with-no-mutations",
"test": [
"@phpcs",
"@phpstan-src",
"@phpstan-tests",
"@phpcs",
"@phpunit",
"@infection"
]
Expand Down
9 changes: 5 additions & 4 deletions src/Datepoint.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down Expand Up @@ -59,12 +59,13 @@ public static function create($datepoint): self
/**
* @inheritdoc
*
* @param string $format
* @param string $datetime
* @param string $format
* @param string $datetime
* @param DateTimeZone $timezone
*
* @return self|bool
*/
public static function createFromFormat($format, $datetime, DateTimeZone $timezone = null)
public static function createFromFormat($format, $datetime, $timezone = null)
{
$datepoint = parent::createFromFormat($format, $datetime, $timezone);
if (false !== $datepoint) {
Expand Down
2 changes: 1 addition & 1 deletion src/Duration.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/Exception.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/InvalidIndex.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/Period.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/Sequence.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/functions_include.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion tests/DatepointTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion tests/DurationTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion tests/ExtendedDate.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion tests/FunctionTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion tests/PeriodTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion tests/SequenceTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* League.Period (https://period.thephpleague.com).
* League.Period (https://period.thephpleague.com)
*
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
*
Expand Down

0 comments on commit fdcab49

Please sign in to comment.