summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-09-02 09:20:44 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-09-02 09:20:44 +0200
commit52980d074809a18d150a88313ab86054870c416e (patch)
tree8c5672177f4fabce9741a23bd5f959bcf4df0246 /includes
parent3668e685566bed2d3623a3cd276d93f79319a008 (diff)
downloadgigologadmin-52980d074809a18d150a88313ab86054870c416e.tar.gz
gigologadmin-52980d074809a18d150a88313ab86054870c416e.tar.bz2
gigologadmin-52980d074809a18d150a88313ab86054870c416e.zip
Fix more type issues in Concert and Venue classes
Diffstat (limited to 'includes')
-rw-r--r--includes/concert.php2
-rw-r--r--includes/venue.php10
2 files changed, 6 insertions, 6 deletions
diff --git a/includes/concert.php b/includes/concert.php
index cc1efaa..f2f5535 100644
--- a/includes/concert.php
+++ b/includes/concert.php
@@ -12,7 +12,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) {
class GiglogAdmin_Concert
{
- private int $id;
+ private ?int $id;
private string $cname;
private ?GiglogAdmin_Venue $venue;
private string $cdate;
diff --git a/includes/venue.php b/includes/venue.php
index 6de14c6..541680f 100644
--- a/includes/venue.php
+++ b/includes/venue.php
@@ -7,11 +7,11 @@
if ( !class_exists('GiglogAdmin_Venue') ) {
class GiglogAdmin_Venue
{
- private int $id;
- private string $name;
- private string $city;
- private string $address;
- private string $webpage;
+ private ?int $id;
+ private ?string $name;
+ private ?string $city;
+ private ?string $address;
+ private ?string $webpage;
/*
* Constructs a new venue object from an array of attributes.