Skip to content

Commit

Permalink
fix: use === instead of ==
Browse files Browse the repository at this point in the history
  • Loading branch information
taka-oyama committed Apr 19, 2021
1 parent e4bf965 commit 4367c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Colopl/Spanner/Concerns/ManagesTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getCurrentTransaction()
*/
protected function createTransaction()
{
if ($this->transactions == 0) {
if ($this->transactions === 0) {
try {
$this->reconnectIfMissingConnection();
$this->currentTransaction = $this->getSpannerDatabase()->transaction();
Expand Down Expand Up @@ -135,7 +135,7 @@ public function commit()
*/
protected function performSpannerCommit()
{
if ($this->transactions == 1) {
if ($this->transactions === 1) {
$this->currentTransaction->commit();
}

Expand Down

0 comments on commit 4367c7d

Please sign in to comment.