Skip to content
This repository

Typecasting #4

Merged
merged 1 commit into from about 2 years ago

2 participants

Doug Stewart Gabriel Somoza
Doug Stewart

This prevents weird object type errors on the other side of things.

Gabriel Somoza gabrielsomoza merged commit 17ec89a into from February 22, 2012
Gabriel Somoza gabrielsomoza closed this February 22, 2012
Gabriel Somoza

Thanks @zamoose!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Feb 22, 2012
Doug Stewart Typecasting. d8d55f2
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  Kuler/Theme.php
6  Kuler/Theme.php
@@ -66,21 +66,21 @@ public function __get($name) {
66 66
 	 * Retrieves the theme's author's name
67 67
 	 */
68 68
 	public function getAuthorLabel(){
69  
-		return $this->_theme->themeAuthor->authorLabel;
  69
+		return (string)$this->_theme->themeAuthor->authorLabel;
70 70
 	}
71 71
 
72 72
 	/**
73 73
 	 * Retrieves the theme's author's Kuler ID
74 74
 	 */
75 75
 	public function getAuthorID(){
76  
-		return $this->_theme->themeAuthor->authorID;
  76
+		return (int)$this->_theme->themeAuthor->authorID;
77 77
 	}
78 78
 	
79 79
 	/**
80 80
 	 * Retrieves the theme's title
81 81
 	 */
82 82
 	public function getTitle(){
83  
-		return $this->_theme->themeTitle;
  83
+		return (string)$this->_theme->themeTitle;
84 84
 	}
85 85
 
86 86
     /**
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.