summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2014-04-08 17:01:12 +0200
committerMartijn Otto <martijn.otto@copernica.com>2014-04-08 17:01:12 +0200
commit33760c3efba4207eac826ff080b5f9b9672fc60e (patch)
treeb02a86125b9ad9f49c992f5c6731b040441ccd73
parent8ff8ecd48ee24c1f8d8c07fc4524cccbfa1004a2 (diff)
parent7179cf4f2257accdc960e285f6e778dafec66b11 (diff)
Merge pull request #70 from hectorj/master
correct typo in error message
-rw-r--r--include/array.h4
-rw-r--r--include/object.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/array.h b/include/array.h
index 26fec24..0b6ceb9 100644
--- a/include/array.h
+++ b/include/array.h
@@ -31,7 +31,7 @@ public:
Array(const Value &value) : Value(value)
{
// type must be valid
- if (value.type() != Type::Array) throw Php::Exception("Assiging a non-array to an array variable");
+ if (value.type() != Type::Array) throw Php::Exception("Assigning a non-array to an array variable");
}
/**
@@ -93,7 +93,7 @@ public:
if (this == &value) return *this;
// type must be valid
- if (value.type() != Type::Array) throw Php::Exception("Assiging a non-array to a fixed array variable");
+ if (value.type() != Type::Array) throw Php::Exception("Assigning a non-array to a fixed array variable");
// call base
Value::operator=(value);
diff --git a/include/object.h b/include/object.h
index 1445943..97c9482 100644
--- a/include/object.h
+++ b/include/object.h
@@ -140,7 +140,7 @@ public:
if (this == &value) return *this;
// type must be valid
- if (value.type() != Type::Object) throw Php::Exception("Assiging a non-object to an object variable");
+ if (value.type() != Type::Object) throw Php::Exception("Assigning a non-object to an object variable");
// call base
Value::operator=(value);