Skip to content

Commit

Permalink
Replace xp::typeOf() with typeof()
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed May 20, 2017
1 parent 1b869de commit 7a51006
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ language: php

sudo: false

dist: trusty

services:
- mysql
- postgresql
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ RDBMS support for the XP Framework: MySQL, Sybase, MSSQL, PostgreSQL, SQLite3, I

## ?.?.? / ????-??-??

## 9.0.8 / 2017-05-20

* Refactored code to use `typeof()` instead of `xp::typeOf()`, see
https://github.com/xp-framework/rfc/issues/323
(@thekid)

## 9.0.7 / 2017-03-23

* Merged PR #38: Catch null value (PostgreSQL) - @treuter
Expand Down
4 changes: 2 additions & 2 deletions src/main/php/rdbms/ProfilingObserver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use util\log\Logger;
use util\log\Traceable;
use util\profiling\Timer;

use lang\IllegalArgumentException;

/**
* Profiling database observer
Expand Down Expand Up @@ -69,7 +69,7 @@ public function typeOf($sql) {
*/
public function update($obs, $arg= null) {
if (!$obs instanceof DBConnection) {
throw new \lang\IllegalArgumentException('Argument 1 must be instanceof "rdbms.DBConnection", "'.\xp::typeOf($obs).'" given.');
throw new IllegalArgumentException('Argument 1 must be instanceof "rdbms.DBConnection", "'.typeof($obs)->getName().'" given.');
}
if (!$arg instanceof DBEvent) return;

Expand Down

0 comments on commit 7a51006

Please sign in to comment.