Skip to content

Commit c06ffc8

Browse files
Rafal PrzetakowskiRafal Przetakowski
authored andcommitted
Correct incompatible method in BFDate
1 parent f03ae02 commit c06ffc8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Vartypes/BFDate.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getDate()
5959
*
6060
* @param BFString $dateTimeFormat {new BFString($dateTimeFormat)}
6161
*/
62-
public function setDateTimeFormat(BFString $dateTimeFormat)
62+
public function setDateTimeFormat($dateTimeFormat)
6363
{
6464
$this->dateTimeFormat = $dateTimeFormat->val();
6565
}
@@ -68,7 +68,7 @@ public function setDateTimeFormat(BFString $dateTimeFormat)
6868
*
6969
* @param BFString $dateFormat {new BFString($dateFormat)}
7070
*/
71-
public function setDateFormat(BFString $dateFormat)
71+
public function setDateFormat($dateFormat)
7272
{
7373
$this->dateFormat = $dateFormat->val();
7474
}
@@ -77,7 +77,7 @@ public function setDateFormat(BFString $dateFormat)
7777
*
7878
* @param BFString $timezone {new BFString($timezone)}
7979
*/
80-
public function setTimezone(BFString $timezone)
80+
public function setTimezone($timezone)
8181
{
8282
parent::setTimezone($timezone->val());
8383
}

Vartypes/BFNip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct($numer)
4545

4646
$numer = str_replace('-', '', $numer);
4747
if (strlen($numer) <> 10) {
48-
throw new Exception('Value must be correct ' . __CLASS__ . ' type');
48+
throw new \Exception('Value must be correct ' . __CLASS__ . ' type');
4949
}
5050

5151
$wagi = '657234567';

0 commit comments

Comments
 (0)